HID: picoLCD: prevent NULL pointer dereferences
authorBruno Prémont <bonbons@linux-vserver.org>
Sun, 19 Aug 2012 17:31:23 +0000 (19:31 +0200)
committerJiri Kosina <jkosina@suse.cz>
Wed, 5 Sep 2012 09:48:06 +0000 (11:48 +0200)
Driver code expects to get access to struct picolcd_data from hiddev
and is not prepared to find a NULL pointer there. Most prominent
candidate to trip on it is picolcd_fb_deferred_io().
Delay removing struct picolcd_data from hiddev until all sub-devices
have been unregistered.

Signed-off-by: Bruno Prémont <bonbons@linux-vserver.org>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>

No differences found