X-Git-Url: http://git.cascardo.eti.br/?p=cascardo%2Fkernel%2Fsamples%2Fchar2%2F.git;a=blobdiff_plain;f=hellochar.c;fp=hellochar.c;h=9d4e40a0b149c553b9251206fcfd9a21e31ac2a8;hp=c2eecefc0477cbd9063b9ef84ea4ba363090c8bc;hb=4b37cdbb4e22dac308907a27286e92fcd98f13eb;hpb=0c53df020c7b9a4bade2010a3eb260c4318e48f8 diff --git a/hellochar.c b/hellochar.c index c2eecef..9d4e40a 100644 --- 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); }