summaryrefslogtreecommitdiff
path: root/drivers/scsi/aic7xxx
diff options
context:
space:
mode:
authorJesper Juhl <jesper.juhl@gmail.com>2006-04-23 22:16:02 +0400
committerJames Bottomley <jejb@mulgrave.il.steeleye.com>2006-04-26 03:08:13 +0400
commit4a6fae1d9c0d879d5d46a2a4962220dbf53ac72b (patch)
tree04c7dc3e0d91a2c5d0ddba5f57163f33157565e1 /drivers/scsi/aic7xxx
parent65207fedcf57dcb854a3ebb9da43c745106fe8d5 (diff)
downloadlinux-4a6fae1d9c0d879d5d46a2a4962220dbf53ac72b.tar.xz
[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>
Diffstat (limited to 'drivers/scsi/aic7xxx')
-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 cb30d9c1153d..0c9c2f400bf6 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);
}