From: Bruno Prémont Date: Sun, 19 Aug 2012 17:31:23 +0000 (+0200) Subject: HID: picoLCD: prevent NULL pointer dereferences X-Git-Tag: omap-for-v3.7-rc1/fixes-cpufreq-signed~104^2~2^4~11 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a5785cc0101928663c8ed89f42afea719aecee09;p=pandora-kernel.git HID: picoLCD: prevent NULL pointer dereferences 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 Signed-off-by: Jiri Kosina --- Reading git-diff-tree failed