From: Jesper Juhl Date: Sun, 23 Apr 2006 18:16:02 +0000 (+0200) Subject: [SCSI] SCSI: aic7xxx_osm_pci resource leak fix. X-Git-Tag: v2.6.17-rc4~4^2~10 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4a6fae1d9c0d879d5d46a2a4962220dbf53ac72b;p=platform%2Fkernel%2Flinux-3.10.git [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 Signed-off-by: James Bottomley --- 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); }