commit | c5d39d96ac57f68b293e7d89815957ccffb3450e | [log] [tgz] |
---|---|---|
author | Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com> | Fri Jul 31 13:36:21 2015 +0200 |
committer | Bryan Wu <cooloney@gmail.com> | Fri Jul 31 10:09:30 2015 -0700 |
tree | 25ed50cf405b94c8327a4d8f6d8f0b2e9e8df10a | |
parent | c78428cafec1f4ecaef18f34e4d22cde00045e5d [diff] |
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: a96aa64cb572 ("leds/led-class: Handle LEDs with the same name") Reported-by: Alan Tull <delicious.quinoa@gmail.com> Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com> Acked-by: Jacek Anaszewski <j.anaszewski@samsung.com> Signed-off-by: Bryan Wu <cooloney@gmail.com>