Input: yealink - reliably kill urbs
authorOliver Neukum <oliver@neukum.org>
Thu, 3 Jul 2008 16:02:03 +0000 (12:02 -0400)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 7 Jul 2008 13:01:49 +0000 (09:01 -0400)
commitb4ecda3e965a87881a94017cb0cd484d65799261
treebfd5ebf739f1fd2296dad27a8726634abc72716c
parent4ad88901dd675acb9c8d1eca1f083c3d22cbbd4d
Input: yealink - reliably kill urbs

Yealink uses two URBs that submit each other. This arrangement
cannot be reliably killed with usb_kill_urb() alone, as there's
a window during which the wrong URB may be killed. The fix is
to introduce a flag.

[dtor@mail.ru: remove spinlock, flag alone should be enough]
Signed-off-by: Oliver Neukum <oneukum@suse.de>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/misc/yealink.c