]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
Input: uinput - add compat ioctl number translation for UI_*_FF_UPLOAD
authorAndrey Smirnov <andrew.smirnov@gmail.com>
Thu, 23 May 2019 19:55:26 +0000 (12:55 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 25 Jun 2019 03:35:54 +0000 (11:35 +0800)
commitebd7dda84ec29a8d9a003d68cc5c8d1fce88ab94
tree96eaa6c1db27913a2645b3dc250f79146d232a7c
parent9f3559e4f6cdf5d5366d293e9d7182db193f53fc
Input: uinput - add compat ioctl number translation for UI_*_FF_UPLOAD

commit 7c7da40da1640ce6814dab1e8031b44e19e5a3f6 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/input/misc/uinput.c