aboutsummaryrefslogtreecommitdiff
path: root/drivers/media/v4l2-core/v4l2-subdev.c
diff options
context:
space:
mode:
authorChris Morgan <macromorgan@hotmail.com>2023-09-20 09:56:44 -0500
committerSebastian Reichel <sebastian.reichel@collabora.com>2023-09-20 19:37:15 +0200
commit488ef44c068e79752dba8eda0b75f524f111a695 (patch)
treee4f701fcc134dfe8ce1c7f0a06eb2364f4dd84c7 /drivers/media/v4l2-core/v4l2-subdev.c
parent3dc0bab23dba53f315c9a7b4a679e0a6d46f7c6e (diff)
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 <dan.carpenter@oracle.com> Closes: https://lore.kernel.org/linux-pm/dc0bb0f8-212d-4be7-be69-becd2a3f9a80@kili.mountain/ Signed-off-by: Chris Morgan <macromorgan@hotmail.com> Link: https://lore.kernel.org/r/20230920145644.57964-1-macroalpha82@gmail.com Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'drivers/media/v4l2-core/v4l2-subdev.c')
0 files changed, 0 insertions, 0 deletions