MLK-20240-1 sata: ahsata: Fix resource leak
authorYe Li <ye.li@nxp.com>
Mon, 12 Nov 2018 08:47:23 +0000 (00:47 -0800)
committerYe Li <ye.li@nxp.com>
Fri, 24 May 2019 11:29:09 +0000 (04:29 -0700)
commitf85bac1ba59e9656dc2a45fb1ae3be743ccd1ea3
treeb4d1d9188b4317ae9293db849a84a3fc7549684b
parentee95e6c80d43f76f911cd7484720eeb7e421bc9f
MLK-20240-1 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>
(cherry picked from commit 8f52ef83dbfc9f1c812b2166a7322a16efcbf939)
drivers/ata/dwc_ahsata.c