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 <>
Reviewed-by: default avatarTom Rini <>
parent 48c3a87c
......@@ -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");
return -EIO;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment