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=a22677d64d446c2e9c73e3da2f9e471c1692e7b4;hp=de99828ade010e78ce3e1cccb7a789db82addbd8;hb=7440ade78df32b1427597af2e302348745e5dfe5;hpb=91e474b7d6c004d5c0d3c5c1ff94721ad64d442d diff --git a/hellochar.c b/hellochar.c index de99828..a22677d 100644 --- a/hellochar.c +++ b/hellochar.c @@ -142,7 +142,7 @@ static void __exit ch_exit(void) { cdev_del(dev); unregister_chrdev_region(devnum, 256); - kfree(hello); + kfree(hello->buf); } module_init(ch_init);