commit | 3a22ebe9cc76acac2511b1d3979a35609924ce42 | [log] [tgz] |
---|---|---|
author | Stefan Achatz <erazor_de@users.sourceforge.net> | Sat Jan 29 02:17:30 2011 +0100 |
committer | Jiri Kosina <jkosina@suse.cz> | Tue Feb 01 11:16:51 2011 +0100 |
tree | e757b49cfcc9fa3fb5bc0652f1594a12281ce97b | |
parent | 581548db3b3c0f6e25b500329eb02e3c72e7acbe [diff] |
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 <erazor_de@users.sourceforge.net> Signed-off-by: Jiri Kosina <jkosina@suse.cz>