diff options
author | Ye Li <ye.li@nxp.com> | 2018-11-14 01:16:35 -0800 |
---|---|---|
committer | Ye Li <ye.li@nxp.com> | 2018-11-14 02:02:10 -0800 |
commit | da3f3a081690d4d7fc901d922d01e2bbe6cb4eb5 (patch) | |
tree | 4eb14fa63322d1786681555e72ae8b5e7171c50b /drivers | |
parent | bc23ae569c7aaea338648c000b7b733b09eb735a (diff) |
MLK-20356-2 dwc_ahsata: Fix incorrect free
Fix coverity issue CID 43665: Free of address-of expression (BAD_FREE)
incorrect_free: free frees incorrect pointer pp.
pp points the port array field of struct ahci_uc_priv, should not free it.
Signed-off-by: Ye Li <ye.li@nxp.com>
Acked-by: Peng Fan <peng.fan@nxp.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/ata/dwc_ahsata.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/ata/dwc_ahsata.c b/drivers/ata/dwc_ahsata.c index b381d23877..28e9141eed 100644 --- a/drivers/ata/dwc_ahsata.c +++ b/drivers/ata/dwc_ahsata.c @@ -449,7 +449,6 @@ static int ahci_port_start(struct ahci_uc_priv *uc_priv, u8 port) mem = (u32)malloc(AHCI_PORT_PRIV_DMA_SZ + 1024); if (!mem) { - free(pp); printf("No mem for table!\n"); return -ENOMEM; } |