]> 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)
commit3bff1783913623f45465aeccaf52d8df114b728e
tree0877897709f09da01e40b55e1329926accd401a8
parentb555e3c961101781a6f6a9a4d8747dd7ff30ee98
hw_random: free rng_buffer at module exit

rng-core module allocates rng_buffer by kmalloc() since commit
3d2c71df64821abc5f7ff19e84fb66da8da4d82c. 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