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>
Showing
- drivers/hid/hid-roccat-arvo.c 1 addition, 1 deletiondrivers/hid/hid-roccat-arvo.c
- drivers/hid/hid-roccat-kone.c 1 addition, 1 deletiondrivers/hid/hid-roccat-kone.c
- drivers/hid/hid-roccat-koneplus.c 1 addition, 1 deletiondrivers/hid/hid-roccat-koneplus.c
- drivers/hid/hid-roccat-kovaplus.c 1 addition, 1 deletiondrivers/hid/hid-roccat-kovaplus.c
- drivers/hid/hid-roccat-pyra.c 1 addition, 1 deletiondrivers/hid/hid-roccat-pyra.c
Loading
Please register or sign in to comment