sata: dwc_ahsata: Fix incorrect free
authorYe Li <ye.li@nxp.com>
Sun, 3 May 2020 14:27:02 +0000 (22:27 +0800)
committerTom Rini <trini@konsulko.com>
Fri, 8 May 2020 22:29:05 +0000 (18:29 -0400)
commitcdff6fba32db88943be2b04639ad6e7746a2be11
tree7833bc63befb39962da9d1fbf1680ac6bd38ab02
parent87e2cb530fc147676319b7c639e7ce138ddf385e
sata: 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.

Acked-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Ye Li <ye.li@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/ata/dwc_ahsata.c