You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
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>
This commit is contained in:
committed by
Jiri Kosina
parent
8211e46004
commit
74b643dac4
@@ -844,8 +844,8 @@ static int __init kone_init(void)
|
||||
|
||||
static void __exit kone_exit(void)
|
||||
{
|
||||
class_destroy(kone_class);
|
||||
hid_unregister_driver(&kone_driver);
|
||||
class_destroy(kone_class);
|
||||
}
|
||||
|
||||
module_init(kone_init);
|
||||
|
||||
Reference in New Issue
Block a user