]> git.karo-electronics.de Git - karo-tx-linux.git/commit
HID: hidraw, fix a NULL pointer dereference in hidraw_ioctl
authorAntonio Ospite <ospite@studenti.unina.it>
Tue, 5 Oct 2010 15:20:16 +0000 (17:20 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 29 Oct 2010 04:51:07 +0000 (21:51 -0700)
commitdc7237c6b7b529c5da2776cbb8b68cc74d1555c3
tree4095ef2b6a74961396a1890bb5fc543469380200
parent6ce3cb681079d1f8274608b05d95b665fe66ed49
HID: hidraw, fix a NULL pointer dereference in hidraw_ioctl

commit d20d5ffab92f00188f360c44c791a5ffb988247c upstream.

BUG: unable to handle kernel NULL pointer dereference at 0000000000000028
IP: [<ffffffffa02c66b4>] 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 <ospite@studenti.unina.it>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/hid/hidraw.c