Input: iforce - use wait_event_interruptible_timeout
authorVojtech Pavlik <vojtech@suse.cz>
Mon, 5 Sep 2005 05:12:39 +0000 (00:12 -0500)
committerDmitry Torokhov <dtor_core@ameritech.net>
Mon, 5 Sep 2005 05:12:39 +0000 (00:12 -0500)
commitfb76b099f86624d3c629cfab071aa2296f65b7bb
tree14efa0998d05e155ae956d0ac630230170563c5d
parent39fd748f56012fdde4cf862f127ce4cdec50d661
Input: iforce - use wait_event_interruptible_timeout

The timeout while() loops in iforce-packets.c lack a
set_current_state(TASK_INTERRUPTIBLE); call. The right solution is
to replace them with wait_event_interruptible_timeout().

Reported-by: Nishanth Aravamudan <nacc@us.ibm.com>
Signed-off-by: Vojtech Pavlik <vojtech@suse.cz>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/joystick/iforce/iforce-packets.c
drivers/input/joystick/iforce/iforce-usb.c