Input: uinput - handle compat ioctl for UI_SET_PHYS
authorRicky Liang <jcliang@chromium.org>
Fri, 20 May 2016 17:58:59 +0000 (10:58 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 20 May 2016 18:00:43 +0000 (11:00 -0700)
commitaffa80bd97f7ca282d1faa91667b3ee9e4c590e6
tree41cf16417f60394ebc527ca37e142c3f73b240a5
parent23ea5967d6bd30ed59480edbc5fe21eec81682a3
Input: uinput - handle compat ioctl for UI_SET_PHYS

When running a 32-bit userspace on a 64-bit kernel, the UI_SET_PHYS
ioctl needs to be treated with special care, as it has the pointer
size encoded in the command.

Signed-off-by: Ricky Liang <jcliang@chromium.org>
Cc: stable@vger.kernel.org
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/misc/uinput.c