diff options
author | Lin Yujun | 2022-09-14 11:32:06 +0800 |
---|---|---|
committer | Stephen Boyd | 2022-09-30 17:06:59 -0700 |
commit | 855ae87a2073ebf1b395e020de54fdf9ce7d166f (patch) | |
tree | d68eb4343dbd45357752276525e1abdb3796cd1f /include/dt-bindings/clock | |
parent | 0049eb1a44ce98bd0c8d3a2d9fec150664da8d66 (diff) |
clk: imx: scu: fix memleak on platform_device_add() fails
No error handling is performed when platform_device_add()
fails. Add error processing before return, and modified
the return value.
Fixes: 77d8f3068c63 ("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>
Diffstat (limited to 'include/dt-bindings/clock')
0 files changed, 0 insertions, 0 deletions