commit | 63e2ae9d75d4c348f47600dcef0f3d90eef7f34e | [log] [tgz] |
---|---|---|
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | Mon Apr 16 13:17:53 2018 +0200 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Wed May 16 10:08:42 2018 +0200 |
tree | 001b2a9a964dc15bdf139d3bef69e67f1312c9d9 | |
parent | 2b0e672598f9ae572b69898cb235fbeffc3e2f8e [diff] |
gpio: fix error path in lineevent_create commit f001cc351ad3309ec8736c374e90e5a4bc472d41 upstream. If gpiod_request() fails the cleanup must not call gpiod_free(). Cc: stable@vger.kernel.org Fixes: 61f922db7221 ("gpio: userspace ABI for reading GPIO line events") Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>