Input: uinput - allow FF requests to time out
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 6 Sep 2017 23:31:29 +0000 (16:31 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 23 Oct 2017 23:32:29 +0000 (16:32 -0700)
commit8e009118a45af30451ff4bbae2b6efd9575d6694
tree2b5ee42caeaa13d96874ef0003313cb201a0de75
parent8446b32b0675b432451bdb35bd193597477f1bfa
Input: uinput - allow FF requests to time out

Previously uinput force feedback requests waited for the userspace
indefinitely, which caused users to block when uinput server process
become unresponsive. Let's establish a 30 seconds deadline for servicing
upload and erase force feedback effect actions, so that users have a
chance to abort stuck requests.

Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/misc/uinput.c