From 0eebed8f469a4f3bbc8e07f3a46dbbff13702be3 Mon Sep 17 00:00:00 2001 From: Zoran Stojsavljevic Date: Sat, 12 Sep 2020 08:53:03 +0200 Subject: [PATCH] [FIX - fatal bug in driver]...exploringBB/extras/kernel/ebbchar/ebbchar.ko crashes kernel https://github.com/derekmolloy/exploringBB/issues/23 --- extras/kernel/ebbchar/ebbchar.c | 1 - 1 file changed, 1 deletion(-) diff --git a/extras/kernel/ebbchar/ebbchar.c b/extras/kernel/ebbchar/ebbchar.c index 771b859..6bafe9c 100644 --- a/extras/kernel/ebbchar/ebbchar.c +++ b/extras/kernel/ebbchar/ebbchar.c @@ -93,7 +93,6 @@ static int __init ebbchar_init(void){ */ static void __exit ebbchar_exit(void){ device_destroy(ebbcharClass, MKDEV(majorNumber, 0)); // remove the device - class_unregister(ebbcharClass); // unregister the device class class_destroy(ebbcharClass); // remove the device class unregister_chrdev(majorNumber, DEVICE_NAME); // unregister the major number printk(KERN_INFO "EBBChar: Goodbye from the LKM!\n");