gpio: handle compatible ioctl() pointers
authorLinus Walleij <linus.walleij@linaro.org>
Fri, 27 May 2016 12:24:04 +0000 (14:24 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 30 May 2016 14:00:31 +0000 (16:00 +0200)
commit8b92e17efe029cc19f435f9fcbdfb1e7b9beb0ef
treefa0c46fd884187ffd0a2d852dcb468743941a8c1
parent9c10280d85c14a20751ab6c1185ad725172936d6
gpio: handle compatible ioctl() pointers

If we're using the compatible ioctl() we need to handle the
argument pointer in a special way or there will be trouble.

Fixes: 3c702e9987e2 ("gpio: add a userspace chardev ABI for GPIOs")
Reported-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Reviewed-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpiolib.c