android_kernel_xiaomi_sm8350/drivers/hid
Jiri Slaby 3d5afd324a HID: fix oops during suspend of unbound HID devices
Usbhid structure is allocated on start invoked only from probe
of some driver. When there is no driver, the structure is null
and causes null-dereference oopses.

Fix it by allocating the structure on probe and disconnect of
the device itself. Also make sure we won't race between start
and resume or stop and suspend respectively.

References: http://bugzilla.kernel.org/show_bug.cgi?id=11827

Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Cc: Johannes Berg <johannes@sipsolutions.net>
Cc: Andreas Schwab <schwab@suse.de>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
2008-10-27 15:06:01 +01:00
..
usbhid HID: fix oops during suspend of unbound HID devices 2008-10-27 15:06:01 +01:00
hid-a4tech.c HID: move connect quirks 2008-10-14 23:50:56 +02:00
hid-apple.c HID: fix hidbus/appletouch device binding regression 2008-10-22 14:47:18 +02:00
hid-belkin.c HID: move connect quirks 2008-10-14 23:50:56 +02:00
hid-bright.c HID: add support for Bright ABNT2 brazilian device 2008-10-14 23:51:04 +02:00
hid-cherry.c HID: move cherry quirks 2008-10-14 23:50:52 +02:00
hid-chicony.c HID: move chicony quirks 2008-10-14 23:50:53 +02:00
hid-core.c HID: Add support for Sony Vaio VGX-TP1E 2008-10-23 12:58:38 +02:00
hid-cypress.c HID: move connect quirks 2008-10-14 23:50:56 +02:00
hid-debug.c
hid-dell.c HID: fix numlock led on Dell device 0x413c/0x2105 2008-10-14 23:51:03 +02:00
hid-dummy.c HID: add support for Bright ABNT2 brazilian device 2008-10-14 23:51:04 +02:00
hid-ezkey.c HID: move ezkey quirks 2008-10-14 23:50:52 +02:00
hid-gyration.c HID: add support for another Gyration remote control 2008-10-17 15:51:35 +02:00
hid-ids.h HID: Add support for Sony Vaio VGX-TP1E 2008-10-23 12:58:38 +02:00
hid-input.c HID: move connect quirks 2008-10-14 23:50:56 +02:00
hid-lg2ff.c HID: convert to dev_* prints 2008-10-14 23:51:01 +02:00
hid-lg.c Revert "HID: Invert HWHEEL mappings for some Logitech mice" 2008-10-17 11:55:44 +02:00
hid-lg.h HID: move logitech FF processing 2008-10-14 23:50:56 +02:00
hid-lgff.c HID: Autocentering support for Logitech MOMO Racing Wheel 2008-10-14 23:50:58 +02:00
hid-microsoft.c HID: move connect quirks 2008-10-14 23:50:56 +02:00
hid-monterey.c HID: move monterey quirks 2008-10-14 23:50:53 +02:00
hid-petalynx.c HID: move connect quirks 2008-10-14 23:50:56 +02:00
hid-pl.c HID: convert to dev_* prints 2008-10-14 23:51:01 +02:00
hid-samsung.c HID: move connect quirks 2008-10-14 23:50:56 +02:00
hid-sony.c HID: Add support for Sony Vaio VGX-TP1E 2008-10-23 12:58:38 +02:00
hid-sunplus.c HID: move sunplus quirks 2008-10-14 23:50:51 +02:00
hid-tmff.c HID: convert to dev_* prints 2008-10-14 23:51:01 +02:00
hid-zpff.c HID: convert to dev_* prints 2008-10-14 23:51:01 +02:00
hidraw.c HID: fix lock imbalance in hidraw 2008-10-23 01:47:30 +02:00
Kconfig HID: Remove "default m" for Thrustmaster and Zeroplus 2008-10-19 20:34:31 +02:00
Makefile HID: add support for Bright ABNT2 brazilian device 2008-10-14 23:51:04 +02:00