HID: roccat: Fix NULL pointer dereference when unloading module
authorStefan Achatz <erazor_de@users.sourceforge.net>
Sun, 30 Jan 2011 12:38:27 +0000 (13:38 +0100)
committerJiri Kosina <jkosina@suse.cz>
Thu, 3 Feb 2011 15:37:28 +0000 (16:37 +0100)
commit74b643dac475e29f53f4132d2349ec1dba3c9e44
tree7dc09d1d853a01fcade0255dd56c9e07b40c92c1
parent8211e46004518c977f70f2661da961d5ba617399
HID: roccat: Fix NULL pointer dereference when unloading module

Class was destroyed before starting the unregistering driver chain.
Disconnecting a device from roccat chardev in this process then
raised a NULL pointer dereference.
Fixed this by destroying class after unregistering driver.

Signed-off-by: Stefan Achatz <erazor_de@users.sourceforge.net>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-roccat-arvo.c
drivers/hid/hid-roccat-kone.c
drivers/hid/hid-roccat-koneplus.c
drivers/hid/hid-roccat-kovaplus.c
drivers/hid/hid-roccat-pyra.c