
22 May
2013
22 May
'13
12:44 a.m.
From: Rob Herring rob.herring@calxeda.com
This fixes a memory leak when scsi inquiry fails.
Signed-off-by: Rob Herring rob.herring@calxeda.com --- drivers/block/ahci.c | 1 + 1 file changed, 1 insertion(+)
diff --git a/drivers/block/ahci.c b/drivers/block/ahci.c index 3cb37e7..a2aa433 100644 --- a/drivers/block/ahci.c +++ b/drivers/block/ahci.c @@ -660,6 +660,7 @@ static int ata_scsiop_inquiry(ccb *pccb) if (ahci_device_data_io(port, (u8 *) &fis, sizeof(fis), tmpid, sizeof(hd_driveid_t), 0)) { debug("scsi_ahci: SCSI inquiry command failure.\n"); + free(tmpid); return -EIO; }
--
1.8.1.2