aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c
diff options
context:
space:
mode:
authorChris Morgan <[email protected]>2023-09-20 14:56:44 +0000
committerSebastian Reichel <[email protected]>2023-09-20 17:37:15 +0000
commit488ef44c068e79752dba8eda0b75f524f111a695 (patch)
treee4f701fcc134dfe8ce1c7f0a06eb2364f4dd84c7 /drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c
parentpower: supply: core: fix use after free in uevent (diff)
downloadkernel-488ef44c068e79752dba8eda0b75f524f111a695.tar.gz
kernel-488ef44c068e79752dba8eda0b75f524f111a695.zip
power: supply: rk817: Fix node refcount leak
Dan Carpenter reports that the Smatch static checker warning has found that there is another refcount leak in the probe function. While of_node_put() was added in one of the return paths, it should in fact be added for ALL return paths that return an error and at driver removal time. Fixes: 54c03bfd094f ("power: supply: Fix refcount leak in rk817_charger_probe") Reported-by: Dan Carpenter <[email protected]> Closes: https://lore.kernel.org/linux-pm/[email protected]/ Signed-off-by: Chris Morgan <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Sebastian Reichel <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c')
0 files changed, 0 insertions, 0 deletions