diff options
author | Joe Hattori <joe@pf.is.s.u-tokyo.ac.jp> | 2024-12-16 10:49:23 +0300 |
---|---|---|
committer | Lee Jones <lee@kernel.org> | 2024-12-17 18:01:11 +0300 |
commit | 0508316be63bb735f59bdc8fe4527cadb62210ca (patch) | |
tree | 6703eb414c035b4f9b1b03d4725b057de82238a6 /scripts/extract-fwblobs | |
parent | 1c896113f04e34d0036ef506532d2e6cf77dd1e5 (diff) | |
download | linux-0508316be63bb735f59bdc8fe4527cadb62210ca.tar.xz |
leds: netxbig: Fix an OF node reference leak in netxbig_leds_get_of_pdata()
netxbig_leds_get_of_pdata() does not release the OF node obtained by
of_parse_phandle() when of_find_device_by_node() fails. Add an
of_node_put() call to fix the leak.
This bug was found by an experimental static analysis tool that I am
developing.
Fixes: 9af512e81964 ("leds: netxbig: Convert to use GPIO descriptors")
Signed-off-by: Joe Hattori <joe@pf.is.s.u-tokyo.ac.jp>
Link: https://lore.kernel.org/r/20241216074923.628509-1-joe@pf.is.s.u-tokyo.ac.jp
Signed-off-by: Lee Jones <lee@kernel.org>
Diffstat (limited to 'scripts/extract-fwblobs')
0 files changed, 0 insertions, 0 deletions