From: Antonio Ospite Date: Tue, 5 Oct 2010 15:20:16 +0000 (+0200) Subject: HID: hidraw, fix a NULL pointer dereference in hidraw_ioctl X-Git-Tag: v2.6.36~22^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d20d5ffab92f00188f360c44c791a5ffb988247c;p=pandora-kernel.git HID: hidraw, fix a NULL pointer dereference in hidraw_ioctl BUG: unable to handle kernel NULL pointer dereference at 0000000000000028 IP: [] hidraw_ioctl+0xfc/0x32c [hid] [...] This is reproducible by disconnecting the device while userspace does ioctl in a loop and doesn't check return values in order to exit the loop. Signed-off-by: Antonio Ospite Cc: stable@kernel.org Signed-off-by: Jiri Kosina --- Reading git-diff-tree failed