diff options
author | Jiri Slaby <[email protected]> | 2008-10-27 12:16:15 +0100 |
---|---|---|
committer | Jiri Kosina <[email protected]> | 2008-10-27 15:06:01 +0100 |
commit | 3d5afd324a4bf9f64f59599bf1e93cd7dd1dc97a (patch) | |
tree | 920b64f768d33c1534f6bdc37447f8b80494f9fa /drivers/mtd/lpddr/lpddr_cmds.c | |
parent | f8d56f1771e4867acc461146764b4feeb5245669 (diff) |
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 <[email protected]>
Cc: Johannes Berg <[email protected]>
Cc: Andreas Schwab <[email protected]>
Signed-off-by: Jiri Kosina <[email protected]>
Diffstat (limited to 'drivers/mtd/lpddr/lpddr_cmds.c')
0 files changed, 0 insertions, 0 deletions