[PATCH tip/core/rcu 8/9] locktorture: Fix potential memory leak with rw lock test

2017-01-14 Thread Paul E. McKenney
From: Yang Shi When running locktorture module with the below commands with kmemleak enabled: $ modprobe locktorture torture_type=rw_lock_irq $ rmmod locktorture The below kmemleak got caught: root@10:~# echo scan > /sys/kernel/debug/kmemleak [ 323.197029] kmemleak: 2

[PATCH tip/core/rcu 8/9] locktorture: Fix potential memory leak with rw lock test

2017-01-14 Thread Paul E. McKenney
From: Yang Shi When running locktorture module with the below commands with kmemleak enabled: $ modprobe locktorture torture_type=rw_lock_irq $ rmmod locktorture The below kmemleak got caught: root@10:~# echo scan > /sys/kernel/debug/kmemleak [ 323.197029] kmemleak: 2 new suspected memory