diff options
author | Miaoqian Lin <linmq006@gmail.com> | 2022-05-11 15:42:03 +0400 |
---|---|---|
committer | Wim Van Sebroeck <wim@linux-watchdog.org> | 2022-05-21 10:09:31 +0200 |
commit | 5d24df3d690809952528e7a19a43d84bc5b99d44 (patch) | |
tree | 0672c4f295de6befc7377d3435334ec0fb2c39dc /drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | |
parent | 9215a90dd56e008999dbaa228c8eb2c7df98a418 (diff) |
watchdog: ts4800_wdt: Fix refcount leak in ts4800_wdt_probe
of_parse_phandle() returns a node pointer with refcount
incremented, we should use of_node_put() on it when done.
Add missing of_node_put() in some error paths.
Fixes: bf9006399939 ("watchdog: ts4800: add driver for TS-4800 watchdog")
Signed-off-by: Miaoqian Lin <linmq006@gmail.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20220511114203.47420-1-linmq006@gmail.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c')
0 files changed, 0 insertions, 0 deletions