diff options
author | Rob Herring <rob.herring@calxeda.com> | 2013-08-24 19:10:49 +0400 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2013-09-06 21:09:07 +0400 |
commit | 796c2ebd6f17da605a05eb233c907e4d8330f751 (patch) | |
tree | cf9c6cb6edb5830ba138cfccb41e397d9df235fe /drivers/block | |
parent | 48c3a87c0a7026866c014fcc1a55281585fa5a41 (diff) | |
download | u-boot-796c2ebd6f17da605a05eb233c907e4d8330f751.tar.xz |
ahci: fix memory leak in ata_scsiop_inquiry
This fixes a memory leak when scsi inquiry fails.
Signed-off-by: Rob Herring <rob.herring@calxeda.com>
Reviewed-by: Tom Rini <trini@ti.com>
Diffstat (limited to 'drivers/block')
-rw-r--r-- | drivers/block/ahci.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/block/ahci.c b/drivers/block/ahci.c index f4d1d8174f..f08806348b 100644 --- a/drivers/block/ahci.c +++ b/drivers/block/ahci.c @@ -643,6 +643,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; } |