diff options
author | Miaoqian Lin <[email protected]> | 2022-12-20 16:18:07 +0400 |
---|---|---|
committer | Lee Jones <[email protected]> | 2023-01-30 08:03:13 +0000 |
commit | da1afe8e6099980fe1e2fd7436dca284af9d3f29 (patch) | |
tree | 9fcf58e0208d5728d17748281ebbe031c1b64e51 /tools/perf/scripts/python/check-perf-trace.py | |
parent | d8960dfb9d6dd940265cd48d7de6ad7060aa6963 (diff) |
leds: led-core: Fix refcount leak in of_led_get()
class_find_device_by_of_node() calls class_find_device(), it will take
the reference, use the put_device() to drop the reference when not need
anymore.
Fixes: 699a8c7c4bd3 ("leds: Add of_led_get() and led_put()")
Signed-off-by: Miaoqian Lin <[email protected]>
Signed-off-by: Lee Jones <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions