android_kernel_xiaomi_sm8350/drivers/input/misc
Aristeu Sergio Rozanski Filho 05cebd3816 Input: uinput - flush all pending ff effects before destroying device
The destruction of a input device in uinput is triggered by an ioctl().
If a process tries to destroy an input device while other is uploading a
force feedback effect by evdev to the same device, they'll deadlock.
This patch fixes the problem by flushing all pending FF uploads before
destroying the device and preventing new uploads during this operation.

[dtor@mail.ru: fix logic that ensures we don't submit new requests
 to the device that is being destroyed.]
Signed-off-by: Aristeu Rozanski <aris@redhat.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
2009-05-15 19:23:44 -07:00
..
apanel.c Input: apanel - convert to new i2c binding 2009-01-07 14:29:17 +01:00
ati_remote2.c Input: ati_remote2 - check module params 2009-01-29 23:43:42 -08:00
ati_remote.c USB: remove info() macro from usb input drivers 2008-10-17 14:41:10 -07:00
atlas_btns.c
cm109.c Input: cm109 - add keymap for ATCom AU-100 phone 2008-11-11 14:02:13 -05:00
cobalt_btns.c
dm355evm_keys.c Input: add dm355evm_keys driver 2009-04-23 19:29:54 -07:00
hp_sdc_rtc.c saner FASYNC handling on file close 2008-11-01 09:49:46 -07:00
ixp4xx-beeper.c
Kconfig Input: add dm355evm_keys driver 2009-04-23 19:29:54 -07:00
keyspan_remote.c
m68kspkr.c
Makefile Input: add dm355evm_keys driver 2009-04-23 19:29:54 -07:00
pcf50633-input.c input: PCF50633 input driver 2009-01-11 01:34:25 +01:00
pcspkr.c Input: pcspkr - fix PIT lockup on some chipsets 2008-11-19 16:54:59 -05:00
powermate.c
rb532_button.c Input: add driver for S1 button of rb532 2009-03-09 20:10:12 -07:00
rotary_encoder.c Input: rotary_encoder - add support for REL_* axes 2009-04-17 20:37:21 -07:00
sgi_btns.c INPUT: sgi_btns: Add license specification 2008-10-27 16:18:28 +00:00
sparcspkr.c
twl4030-pwrbutton.c Input: add twl4030-pwrbutton driver 2009-04-19 23:08:41 -07:00
uinput.c Input: uinput - flush all pending ff effects before destroying device 2009-05-15 19:23:44 -07:00
wistron_btns.c
yealink.c USB: remove info() macro from usb input drivers 2008-10-17 14:41:10 -07:00
yealink.h