linux-stable/drivers/hid
Jiri Slaby 332c1def71 HID: hidraw: fix window in hidraw_release
commit cb174681a9 upstream.

[ Backport to .32.y by Antonio Ospite <ospite@studenti.unina.it> ]

There is a window between hidraw_table check and its dereference.
In that window, the device may be unplugged and removed form the
system and we will then dereference NULL.

Lock that place properly so that either we get NULL and jump out or we
can work with real pointer.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Antonio Ospite <ospite@studenti.unina.it>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Willy Tarreau <w@1wt.eu>
2011-02-09 22:15:35 +01:00
..
usbhid HID: hiddev, fix lock imbalance 2009-07-30 16:06:05 -07:00
hid-core.c HID: use get/put_unaligned_* helpers 2008-07-23 15:21:54 +02:00
hid-debug.c HID: remove CVS keywords 2008-05-20 16:44:43 +02:00
hid-input-quirks.c HID: gyration remote support 2008-07-23 15:25:22 +02:00
hid-input.c HID: apple_fn_keys F5 and F6 2008-07-23 15:25:22 +02:00
hidraw.c HID: hidraw: fix window in hidraw_release 2011-02-09 22:15:35 +01:00
Kconfig HID: add hidraw interface 2007-10-14 14:47:26 +02:00
Makefile HID: refactor mapping to input subsystem for quirky devices 2008-01-28 14:51:20 +01:00