Skip to content
Commit e5b5a61f authored by Ricardo Ribalda's avatar Ricardo Ribalda Committed by Jacek Anaszewski
Browse files

leds/led-class: Add missing put_device()



Devices found by class_find_device must be freed with put_device().
Otherwise the reference count will not work properly.

Fixes: a96aa64c ("leds/led-class: Handle LEDs with the same name")
Reported-by: default avatarAlan Tull <delicious.quinoa@gmail.com>
Signed-off-by: default avatarRicardo Ribalda Delgado <ricardo.ribalda@gmail.com>
Signed-off-by: default avatarJacek Anaszewski <j.anaszewski@samsung.com>
parent 4fc5af86
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment