]> git.baikalelectronics.ru Git - kernel.git/commit
Input: serport - add compat handling for SPIOCSTYPE ioctl
authorJohn Sung <penmount.touch@gmail.com>
Tue, 9 Sep 2014 17:06:51 +0000 (10:06 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 10 Sep 2014 17:27:42 +0000 (10:27 -0700)
commit4080fac02de3855df82c5289c4641ecb272d5f24
tree5e6f26aebe52f14def749d11844f2257e1afbcee
parent5ab33b06160bbc099678f64d94a5440c7f826cc2
Input: serport - add compat handling for SPIOCSTYPE ioctl

When running a 32-bit inputattach utility in a 64-bit system, there will be
error code "inputattach: can't set device type". This is caused by the
serport device driver not supporting compat_ioctl, so that SPIOCSTYPE ioctl
fails.

Cc: stable@vger.kernel.org
Signed-off-by: John Sung <penmount.touch@gmail.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/serio/serport.c