Input: uinput - add compat ioctl number translation for UI_*_FF_UPLOAD
commit7c7da40da1640ce6814dab1e8031b44e19e5a3f6
authorAndrey Smirnov <andrew.smirnov@gmail.com>
Thu, 23 May 2019 19:55:26 +0000 (23 12:55 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 23 May 2019 20:04:37 +0000 (23 13:04 -0700)
tree508823d478ad681df8d4136dc4756b8d942ff2eb
parent0e658060e5fc50dc282885dc424a94b5d95547e5
Input: uinput - add compat ioctl number translation for UI_*_FF_UPLOAD

In the case of compat syscall ioctl numbers for UI_BEGIN_FF_UPLOAD and
UI_END_FF_UPLOAD need to be adjusted before being passed on
uinput_ioctl_handler() since code built with -m32 will be passing
slightly different values. Extend the code already covering
UI_SET_PHYS to cover UI_BEGIN_FF_UPLOAD and UI_END_FF_UPLOAD as well.

Reported-by: Pierre-Loup A. Griffais <pgriffais@valvesoftware.com>
Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Cc: stable@vger.kernel.org
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/misc/uinput.c