From: Thadeu Lima de Souza Cascardo Date: Fri, 21 May 2010 18:20:38 +0000 (-0400) Subject: Fix exit module, releasing the right pointer to the buffer. X-Git-Url: http://git.cascardo.info/?p=cascardo%2Fkernel%2Fsamples%2Fchar2%2F.git;a=commitdiff_plain;h=7440ade78df32b1427597af2e302348745e5dfe5 Fix exit module, releasing the right pointer to the buffer. --- 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);