提交 796c2ebd 编写于 作者: R Rob Herring 提交者: Tom Rini

ahci: fix memory leak in ata_scsiop_inquiry

This fixes a memory leak when scsi inquiry fails.
Signed-off-by: NRob Herring <rob.herring@calxeda.com>
Reviewed-by: NTom Rini <trini@ti.com>
上级 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");
free(tmpid);
return -EIO;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册