]> git.baikalelectronics.ru Git - kernel.git/commit
hw_random: free rng_buffer at module exit
authorSatoru Takeuchi <satoru.takeuchi@gmail.com>
Wed, 20 Mar 2013 00:58:51 +0000 (11:28 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Wed, 20 Mar 2013 00:59:37 +0000 (11:29 +1030)
commit25d987252be3d34f0ec4d82f74bfb6e4580cf285
tree0877897709f09da01e40b55e1329926accd401a8
parent0a4528a44568cadca78b726ea1cfd7ef7be53628
hw_random: free rng_buffer at module exit

rng-core module allocates rng_buffer by kmalloc() since commit
2a44c9b9482da4003364376183f4bdcd3064230a. But this buffer won't be
freed and there is a memory leak possibility at module exit.

Signed-off-by: Satoru Takeuchi <satoru.takeuchi@gmail.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
drivers/char/hw_random/core.c