Skip to content

Commit

Permalink
[FIX - fatal bug in driver]...exploringBB/extras/kernel/ebbchar/ebbch…
Browse files Browse the repository at this point in the history
…ar.ko crashes kernel derekmolloy#23
  • Loading branch information
ZoranStojsavljevic committed Sep 12, 2020
1 parent 6fb1269 commit 0eebed8
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion extras/kernel/ebbchar/ebbchar.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 0eebed8

Please sign in to comment.