]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 5 Oct 2014 20:41:05 +0000 (13:41 -0700)
commit78d875e465fbeaa449975254876dc1b6e4a87792
treeb9716ad0b7c8d3bf05f97d64f39c16e70c9ddfb3
parent868c34cdfdaa215d76acc78204e13799baf118b8
Input: serport - add compat handling for SPIOCSTYPE ioctl

commit a80d8b02751060a178bb1f7a6b7a93645a7a308b upstream.

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.

Signed-off-by: John Sung <penmount.touch@gmail.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/input/serio/serport.c