HID: fix locking in hidraw_open()
authorOliver Neukum <oliver@neukum.org>
Thu, 30 Oct 2008 23:07:23 +0000 (00:07 +0100)
committerJiri Kosina <jkosina@suse.cz>
Thu, 13 Nov 2008 09:31:35 +0000 (10:31 +0100)
commit7d672cd7506165818aacf97fdc448cffc72bde37
treedcdfedb642c53b8100ce4511d34a30f7a370e729
parent4ffaf869c7780bbdfc11291e5fd4b61dde662b1c
HID: fix locking in hidraw_open()

As open needs to sleep hidraw was wrong to call it with a spinlock held.
Furthermore, open can of course fail which needs to be handled.

Signed-off-by: Oliver Neukum <oneukum@suse.de>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hidraw.c