]> err.no Git - linux-2.6/commit
USB: fix locking in idmouse
authorOliver Neukum <oliver@neukum.org>
Tue, 23 Oct 2007 12:23:13 +0000 (14:23 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 25 Oct 2007 19:18:44 +0000 (12:18 -0700)
commit54d2bc068fd21bcb096660938bce7c7265613a24
tree6808af091410fea3f2b7e7d06a9cdad322f51ce2
parent439a903a9663c0caa8094f3907ca60069d6c36e7
USB: fix locking in idmouse

Pete caused me to lock at buggy drivers in this respect. The idmouse has
a race between open and disconnect. This patch

- solves the open/disconnect race
- switches locking to mutexes

Signed-off-by: Oliver Neukum <oneukum@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/misc/idmouse.c