From: Paul E. McKenney Date: Mon, 27 Oct 2014 22:52:04 +0000 (-0700) Subject: rcutorture: Fix rcu_torture_cbflood() memory leak X-Git-Tag: v3.19-rc1~161^2^2~1 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=b8969d1a506cdb8ed1e4ae474e931dfcba277da1;p=karo-tx-linux.git rcutorture: Fix rcu_torture_cbflood() memory leak Commit 38706bc5a29a (rcutorture: Add callback-flood test) vmalloc()ed a bunch of RCU callbacks, but failed to free them. This commit fixes that oversight. Signed-off-by: Paul E. McKenney Reviewed-by: Pranith Kumar --- diff --git a/kernel/rcu/rcutorture.c b/kernel/rcu/rcutorture.c index 240fa9094f83..4d559baf06e0 100644 --- a/kernel/rcu/rcutorture.c +++ b/kernel/rcu/rcutorture.c @@ -812,6 +812,7 @@ rcu_torture_cbflood(void *arg) cur_ops->cb_barrier(); stutter_wait("rcu_torture_cbflood"); } while (!torture_must_stop()); + vfree(rhp); torture_kthread_stopping("rcu_torture_cbflood"); return 0; }