sata: dwc_ahsata: Fix memory issue in reset_sata
authorYe Li <ye.li@nxp.com>
Sun, 3 May 2020 14:27:03 +0000 (22:27 +0800)
committerTom Rini <trini@konsulko.com>
Fri, 8 May 2020 22:29:10 +0000 (18:29 -0400)
commit6b6c620c824e10a03da3c617aa9f2c6486f7f57a
treed7198d3d611b2401b5b889c7fae7199edd275663
parentcdff6fba32db88943be2b04639ad6e7746a2be11
sata: dwc_ahsata: Fix memory issue in reset_sata

The reset_sata should reset the sata device info and free the
probe_ent memory. Otherwise, it will cause memory leak if we
init the sata again.

Signed-off-by: Ye Li <ye.li@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
drivers/ata/dwc_ahsata.c