]> git.dujemihanovic.xyz Git - u-boot.git/commit
sata: ahsata: Fix resource leak
authorYe Li <ye.li@nxp.com>
Sun, 3 May 2020 14:27:00 +0000 (22:27 +0800)
committerTom Rini <trini@konsulko.com>
Fri, 8 May 2020 22:29:00 +0000 (18:29 -0400)
commitbf38cbf9a289c41a0db6697c280ede73340191e7
treef02561bcc569e45805b289ac4fa180fc251d2670
parenta5e609b982a004e009e8ee0aa6066785db425ac2
sata: ahsata: Fix resource leak

Fix coverity issue CID 3606684: Resource leak (RESOURCE_LEAK)
leaked_storage: Variable uc_priv going out of scope leaks the storage it points to

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