From: Jiri Kosina Date: Fri, 1 May 2009 22:02:57 +0000 (+0200) Subject: HID: fix oops in hid_check_keys_pressed() X-Git-Tag: v2.6.30-rc5~58^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e5288eb5ea89bd82d897cb687348bc608278f920;p=pandora-kernel.git HID: fix oops in hid_check_keys_pressed() If the device is not claimed by hid-input (i.e devices driver by userspace hiddev/hidraw-based drivers, or completely detached from HID and driver by libusb), we must not check the hid->inptus, as it is not guaranteed to be initialized, as this is performed only for devices handled by hid-input. Reported-by: Guillaume Chazarain Tested-by: Guillaume Chazarain Signed-off-by: Jiri Kosina --- Reading git-diff-tree failed