Commit 9209e6ba authored by Lin Yujun's avatar Lin Yujun Committed by Greg Kroah-Hartman
Browse files

clk: imx: scu: fix memleak on platform_device_add() fails



[ Upstream commit 855ae87a ]

No error handling is performed when platform_device_add()
fails. Add error processing before return, and modified
the return value.

Fixes: 77d8f306 ("clk: imx: scu: add two cells binding support")
Signed-off-by: default avatarLin Yujun <linyujun809@huawei.com>
Link: https://lore.kernel.org/r/20220914033206.98046-1-linyujun809@huawei.com


Signed-off-by: default avatarStephen Boyd <sboyd@kernel.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent bdf72f2d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment