summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesper Juhl <jesper.juhl@gmail.com>2006-04-23 20:16:02 +0200
committerJames Bottomley <jejb@mulgrave.il.steeleye.com>2006-04-25 18:08:13 -0500
commit4a6fae1d9c0d879d5d46a2a4962220dbf53ac72b (patch)
tree04c7dc3e0d91a2c5d0ddba5f57163f33157565e1
parent65207fedcf57dcb854a3ebb9da43c745106fe8d5 (diff)
downloadop-kernel-dev-4a6fae1d9c0d879d5d46a2a4962220dbf53ac72b.zip
op-kernel-dev-4a6fae1d9c0d879d5d46a2a4962220dbf53ac72b.tar.gz
[SCSI] SCSI: aic7xxx_osm_pci resource leak fix.
Fix resource leak in drivers/scsi/aic7xxx/aic7xxx_osm_pci.c::ahc_linux_pci_dev_probe() Found by the coverity checker (#668) Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
-rw-r--r--drivers/scsi/aic7xxx/aic7xxx_osm_pci.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/scsi/aic7xxx/aic7xxx_osm_pci.c b/drivers/scsi/aic7xxx/aic7xxx_osm_pci.c
index cb30d9c..0c9c2f4 100644
--- a/drivers/scsi/aic7xxx/aic7xxx_osm_pci.c
+++ b/drivers/scsi/aic7xxx/aic7xxx_osm_pci.c
@@ -219,6 +219,7 @@ ahc_linux_pci_dev_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
ahc->flags |= AHC_39BIT_ADDRESSING;
} else {
if (dma_set_mask(dev, DMA_32BIT_MASK)) {
+ ahc_free(ahc);
printk(KERN_WARNING "aic7xxx: No suitable DMA available.\n");
return (-ENODEV);
}
OpenPOWER on IntegriCloud