linux/drivers/hid
Jiri Slaby 32aba3cf35 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>
2011-01-07 14:43:13 -08:00
..
usbhid HID: fix suspend crash by moving initializations earlier 2010-09-20 13:17:51 -07:00
hid-a4tech.c
hid-apple.c
hid-belkin.c
hid-cherry.c
hid-chicony.c
hid-core.c HID: Add the GYR4101US USB ID to hid-gyration 2010-07-05 11:10:33 -07:00
hid-cypress.c
hid-debug.c
hid-drff.c
hid-ezkey.c
hid-gaff.c
hid-gyration.c HID: Add the GYR4101US USB ID to hid-gyration 2010-07-05 11:10:33 -07:00
hid-ids.h HID: Add the GYR4101US USB ID to hid-gyration 2010-07-05 11:10:33 -07:00
hid-input.c
hid-kensington.c
hid-kye.c
hid-lg.c
hid-lg.h
hid-lg2ff.c
hid-lgff.c
hid-microsoft.c
hid-monterey.c
hid-ntrig.c
hid-petalynx.c
hid-pl.c
hid-samsung.c
hid-sjoy.c
hid-sony.c
hid-sunplus.c
hid-tmff.c
hid-topseed.c
hid-twinhan.c
hid-wacom.c
hid-zpff.c
hidraw.c HID: hidraw: fix window in hidraw_release 2011-01-07 14:43:13 -08:00
Kconfig
Makefile