From: Stefan Achatz Date: Sat, 29 Jan 2011 01:17:30 +0000 (+0100) Subject: HID: hidraw: fix hidraw_disconnect() X-Git-Tag: v2.6.39-rc1~429^2^7~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3a22ebe9cc76acac2511b1d3979a35609924ce42;p=pandora-kernel.git HID: hidraw: fix hidraw_disconnect() hidraw_disconnect() first sets an entry in hidraw_table to NULL and calls device_destroy() afterwards. The thereby called hidraw_release() tries to read this already cleared value resulting in never removing any device from the list. This got fixed by changing the order of events. Signed-off-by: Stefan Achatz Signed-off-by: Jiri Kosina --- Reading git-diff-tree failed