From: Antonio Ospite Date: Tue, 5 Oct 2010 15:20:17 +0000 (+0200) Subject: HID: hidraw, fix a NULL pointer dereference in hidraw_write X-Git-Tag: v2.6.36~22^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e42dee9a99a3ecd32b5c027e8f7411fb5bc11eb6;p=pandora-kernel.git HID: hidraw, fix a NULL pointer dereference in hidraw_write BUG: unable to handle kernel NULL pointer dereference at 0000000000000028 IP: [] hidraw_write+0x3b/0x116 [hid] [...] This is reproducible by disconnecting the device while userspace writes to dev node 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