diff options
author | Brendan Shanks <bshanks@codeweavers.com> | 2020-04-22 13:45:12 -0700 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2020-04-22 14:15:04 -0700 |
commit | 09264098ff153f60866039d60b31d39b66f55a31 (patch) | |
tree | f84241541ac1987f3fbcb0e7c59e239863566671 /drivers/input/joystick | |
parent | Input: i8042 - add ThinkPad S230u to i8042 nomux list (diff) | |
download | linux-dev-09264098ff153f60866039d60b31d39b66f55a31.tar.xz linux-dev-09264098ff153f60866039d60b31d39b66f55a31.zip |
Input: evdev - call input_flush_device() on release(), not flush()
input_flush_device() should only be called once the struct file is being
released and no open descriptors remain, but evdev_flush() was calling
it whenever a file descriptor was closed.
This caused uploaded force-feedback effects to be erased when a process
did a dup()/close() on the event FD, called system(), etc.
Call input_flush_device() from evdev_release() instead.
Reported-by: Mathieu Maret <mathieu.maret@gmail.com>
Signed-off-by: Brendan Shanks <bshanks@codeweavers.com>
Link: https://lore.kernel.org/r/20200421231003.7935-1-bshanks@codeweavers.com
Cc: stable@vger.kernel.org
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input/joystick')
0 files changed, 0 insertions, 0 deletions