diff options
| author | Lin Yujun <[email protected]> | 2022-09-14 03:32:06 +0000 |
|---|---|---|
| committer | Stephen Boyd <[email protected]> | 2022-10-01 00:06:59 +0000 |
| commit | 855ae87a2073ebf1b395e020de54fdf9ce7d166f (patch) | |
| tree | d68eb4343dbd45357752276525e1abdb3796cd1f /drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c | |
| parent | Merge tag 'clk-imx-6.1' of git://git.kernel.org/pub/scm/linux/kernel/git/abel... (diff) | |
| download | kernel-855ae87a2073ebf1b395e020de54fdf9ce7d166f.tar.gz kernel-855ae87a2073ebf1b395e020de54fdf9ce7d166f.zip | |
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 <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Stephen Boyd <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c')
0 files changed, 0 insertions, 0 deletions
