linux-stable-rt/drivers/hid
Alan Stern fde4e2f732 HID: fix suspend crash by moving initializations earlier
Although the usbhid driver allocates its usbhid structure in the probe
routine, several critical fields in that structure don't get
initialized until usbhid_start().  However if report descriptor
parsing fails then usbhid_start() is never called.  This leads to
problems during system suspend -- the system will freeze.

This patch (as1378) fixes the bug by moving the initialization
statements up into usbhid_probe().

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Reported-by: Bruno Prémont <bonbons@linux-vserver.org>
Tested-By: Bruno Prémont <bonbons@linux-vserver.org>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
2010-05-07 23:33:52 +02:00
..
usbhid
Kconfig
Makefile
hid-3m-pct.c
hid-a4tech.c
hid-apple.c
hid-belkin.c
hid-cherry.c
hid-chicony.c
hid-core.c
hid-cypress.c
hid-debug.c
hid-drff.c
hid-ezkey.c
hid-gaff.c
hid-gyration.c
hid-ids.h
hid-input.c
hid-kensington.c
hid-kye.c
hid-lg.c
hid-lg.h
hid-lg2ff.c
hid-lg3ff.c
hid-lgff.c
hid-magicmouse.c
hid-microsoft.c
hid-monterey.c
hid-mosart.c
hid-ntrig.c
hid-ortek.c
hid-petalynx.c
hid-pl.c
hid-quanta.c
hid-samsung.c
hid-sjoy.c
hid-sony.c
hid-stantum.c
hid-sunplus.c
hid-tmff.c
hid-topseed.c
hid-twinhan.c
hid-wacom.c
hid-zpff.c
hidraw.c