diff options
author | Alan Stern <stern@rowland.harvard.edu> | 2010-05-07 10:41:10 -0400 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2010-05-07 23:33:52 +0200 |
commit | fde4e2f73208b8f34f123791e39c0cb6bc74b32a (patch) | |
tree | 0a0e85f2f83ddc8d7945c617709e582993438971 /fs | |
parent | fddb33f2e8872fa4857dd29f0b71a523c9ed5577 (diff) |
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>
Diffstat (limited to 'fs')
0 files changed, 0 insertions, 0 deletions