]> git.karo-electronics.de Git - karo-tx-linux.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)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 20 Sep 2010 20:17:51 +0000 (13:17 -0700)
commitc7260ac8c7a413285419dd3835e81d43ec39fba6
tree8790c1ffd30a3d84a0a1ba4d5c8fdbc00285bbd3
parenta9dd3bc18f34e031d923eb519e8149acdb408327
HID: usbhid: initialize interface pointers early enough

commit 57ab12e418ec4fe24c11788bb1bbdabb29d05679 upstream.

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>
Cc: maximilian attems <max@stro.at>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/hid/usbhid/hid-core.c