From: Jiri Slaby Date: Tue, 19 Oct 2010 09:29:55 +0000 (+0200) Subject: HID: hidraw: fix window in hidraw_release X-Git-Tag: v2.6.37-rc1~144^2~4^3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cb174681a9ececa6702f114b85bdf82144b6a5af;p=pandora-kernel.git HID: hidraw: fix window in hidraw_release There is a window between hidraw_table check and its dereference. In that window, the device may be unplugged and removed form the system and we will then dereference NULL. Lock that place properly so that either we get NULL and jump out or we can work with real pointer. Signed-off-by: Jiri Slaby Signed-off-by: Jiri Kosina --- Reading git-diff-tree failed