]> git.baikalelectronics.ru Git - kernel.git/commit
gpio: fix line flag validation in linehandle_create
authorKent Gibson <warthog618@gmail.com>
Mon, 9 Sep 2019 03:22:18 +0000 (03:22 +0000)
committerBartosz Golaszewski <bgolaszewski@baylibre.com>
Mon, 9 Sep 2019 08:01:55 +0000 (10:01 +0200)
commitd4f638f760dd86ac81f98940ab96b369a116b770
tree2c4fbb24ea635835e3729d193e7adb3987218932
parent52c90f97f401a0b5eab83e716f21a65e07a2211a
gpio: fix line flag validation in linehandle_create

linehandle_create should not allow both GPIOHANDLE_REQUEST_INPUT
and GPIOHANDLE_REQUEST_OUTPUT to be set.

Fixes: ce5d32a63686 ("gpio: userspace ABI for reading/writing GPIO lines")
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Kent Gibson <warthog618@gmail.com>
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
drivers/gpio/gpiolib.c