Files
linux/drivers/gpio/gpiolib-sysfs.c
Johan Hovold 64f2260ea2 gpio: sysfs: fix memory leak in gpiod_sysfs_set_active_low
commit 49d2ca84e4 upstream.

Fix memory leak in the gpio sysfs interface due to failure to drop
reference to device returned by class_find_device when setting the
gpio-line polarity.

Fixes: 0769746183 ("gpiolib: add support for changing value polarity in sysfs")
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-02-11 15:00:50 +08:00

19 KiB