]> git.baikalelectronics.ru Git - kernel.git/commit
HID: usbhid: initialize interface pointers early enough
authorJiri Kosina <jkosina@suse.cz>
Wed, 17 Feb 2010 13:25:01 +0000 (14:25 +0100)
committerJiri Kosina <jkosina@suse.cz>
Wed, 17 Feb 2010 13:25:01 +0000 (14:25 +0100)
commitdd530a9a5df11bf27a9b9ca06434a0eda606bd16
tree33a6b687de72e088ad71b155acaf982c1adc97ac
parent52e29a07fef004c765b6588d507ade27ee17eb20
HID: usbhid: initialize interface pointers early enough

Move the initialization of USB interface pointers from _start()
over to _probe() callback, which is where it belongs.

This fixes case where interface is NULL when parsing of report
descriptor fails.

LKML-Reference: <20100213135720.603e5f64@neptune.home>
Reported-by: Alan Stern <stern@rowland.harvard.edu>
Tested-by: Bruno Prémont <bonbons@linux-vserver.org>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/usbhid/hid-core.c