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)
commitb7d44d9487a11e835de10908f4ab30b4290c0b7f
tree0877897709f09da01e40b55e1329926accd401a8
parentaabd6a8fa5a933bdf968cd86e34122745c1960e8
hw_random: free rng_buffer at module exit

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