commit | 49d2ca84e433dab854c7a866bc6add09cfab682d | [log] [tgz] |
---|---|---|
author | Johan Hovold <johan@kernel.org> | Mon Jan 26 12:02:46 2015 +0100 |
committer | Linus Walleij <linus.walleij@linaro.org> | Fri Jan 30 10:29:33 2015 +0100 |
tree | d45d58ae64b77999e3cb93f61194f0baabe68e14 | |
parent | 0f303db08df0df9bd0966443ad6001e63960af16 [diff] |
gpio: sysfs: fix memory leak in gpiod_sysfs_set_active_low 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: 0769746183ca ("gpiolib: add support for changing value polarity in sysfs") Cc: stable <stable@vger.kernel.org> # v2.6.33 Signed-off-by: Johan Hovold <johan@kernel.org> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>