Commit 93112aa5 authored by Ye Li's avatar Ye Li Committed by Jason Liu

MLK-14930-2 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: default avatarYe Li <>
parent 4045d108
......@@ -615,6 +615,9 @@ int reset_sata(int dev)
while (readl(&host_mmio->ghc) & SATA_HOST_GHC_HR)
memset(&sata_dev_desc[dev], 0, sizeof(struct blk_desc));
return 0;
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