summaryrefslogtreecommitdiff
path: root/scripts/extract-fwblobs
diff options
context:
space:
mode:
authorJoe Hattori <joe@pf.is.s.u-tokyo.ac.jp>2024-12-20 11:53:46 +0300
committerLee Jones <lee@kernel.org>2025-01-09 13:57:16 +0300
commit417cad5dc782096350e6a967ee5dd3417a19a24e (patch)
tree770310b262328827f25b7f12fecbb23a68e8d282 /scripts/extract-fwblobs
parente14d879292b0f7755c0d51b82a19b30859bb080a (diff)
downloadlinux-417cad5dc782096350e6a967ee5dd3417a19a24e.tar.xz
leds: cht-wcove: Use devm_led_classdev_register() to avoid memory leak
cht_wc_leds_probe() leaks memory when the second led_classdev_register() call in the for-loop fails as it does not call the cleanup function led_classdev_unregister() on the first device. Avoid this leak by calling devm_led_classdev_register(). Fixes: 047da762b9a9 ("leds: Add Intel Cherry Trail Whiskey Cove PMIC LED driver") Signed-off-by: Joe Hattori <joe@pf.is.s.u-tokyo.ac.jp> Link: https://lore.kernel.org/r/20241220085346.533675-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