Skip to content
Snippets Groups Projects
Commit 796c2ebd authored by Rob Herring's avatar Rob Herring Committed by Tom Rini
Browse files

ahci: fix memory leak in ata_scsiop_inquiry


This fixes a memory leak when scsi inquiry fails.

Signed-off-by: default avatarRob Herring <rob.herring@calxeda.com>
Reviewed-by: default avatarTom Rini <trini@ti.com>
parent 48c3a87c
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment