]> 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)
commit26d6b4ca3e8df1d078485f800e90d4ae57704e11
tree2c4fbb24ea635835e3729d193e7adb3987218932
parentd8cf6ab9ce789c814f997e62bfb24a66e8c16b7f
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: 8467f6ad9e2e ("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