projects
/
cascardo
/
kernel
/
samples
/
char2
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Do not kfree after cdev_del, which already does kfree for us.
[cascardo/kernel/samples/char2/.git]
/
hellochar.c
diff --git
a/hellochar.c
b/hellochar.c
index
c2eecef
..
9d4e40a
100644
(file)
--- a/
hellochar.c
+++ b/
hellochar.c
@@
-65,7
+65,6
@@
out:
static void __exit ch_exit(void)
{
cdev_del(dev);
- kfree(dev);
unregister_chrdev_region(devnum, 256);
}