Files
linux/drivers/clk/imx
Lin Yujun 05fe0b3d69 clk: imx: scu: fix memleak on platform_device_add() fails
[ Upstream commit 855ae87a20 ]

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

Fixes: 77d8f3068c ("clk: imx: scu: add two cells binding support")
Signed-off-by: Lin Yujun <linyujun809@huawei.com>
Link: https://lore.kernel.org/r/20220914033206.98046-1-linyujun809@huawei.com
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-10-21 12:38:54 +02:00
..
2020-08-22 20:36:57 +08:00
2022-04-12 13:52:58 +03:00
2022-04-12 13:52:58 +03:00
2022-04-12 13:56:02 +03:00
2022-04-12 13:52:58 +03:00
2022-01-29 15:12:07 +02:00
2022-09-28 18:37:36 -07:00
2020-09-07 11:08:50 +08:00
2022-01-29 15:12:07 +02:00
2020-08-23 10:08:35 +08:00
2022-04-12 14:00:20 +03:00
2022-03-04 17:06:29 +02:00