Skip to content
Commit 89f12d65 authored by Wei Yongjun's avatar Wei Yongjun Committed by Shawn Guo
Browse files

firmware: imx: scu: Fix possible memory leak in imx_scu_probe()



'chan_name' is malloced in imx_scu_probe() and should be freed
before leaving from the error handling cases, otherwise it will
cause memory leak.

Fixes: edbee095 ("firmware: imx: add SCU firmware driver support")
Signed-off-by: default avatarWei Yongjun <weiyongjun1@huawei.com>
Reviewed-by: default avatarDong Aisheng <aisheng.dong@nxp.com>
Signed-off-by: default avatarShawn Guo <shawnguo@kernel.org>
parent 88d93afd
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment