Commit c8fa637
committed
rcutorture: Properly set rcu_fwds for OOM handling
The conversion of rcu_fwds to dynamic allocation failed to actually
allocate the required structure. This commit therefore allocates it,
frees it, and updates rcu_fwds accordingly. While in the area, it
abstracts the cleanup actions into rcu_torture_fwd_prog_cleanup().
Fixes: 5155be9 ("rcutorture: Dynamically allocate rcu_fwds structure")
Reported-by: kernel test robot <rong.a.chen@intel.com>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>1 parent 5461808 commit c8fa637
1 file changed
Lines changed: 12 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2148 | 2148 | | |
2149 | 2149 | | |
2150 | 2150 | | |
| 2151 | + | |
2151 | 2152 | | |
2152 | 2153 | | |
2153 | 2154 | | |
| 2155 | + | |
| 2156 | + | |
| 2157 | + | |
| 2158 | + | |
| 2159 | + | |
| 2160 | + | |
| 2161 | + | |
| 2162 | + | |
| 2163 | + | |
| 2164 | + | |
2154 | 2165 | | |
2155 | 2166 | | |
2156 | 2167 | | |
| |||
2448 | 2459 | | |
2449 | 2460 | | |
2450 | 2461 | | |
2451 | | - | |
| 2462 | + | |
2452 | 2463 | | |
2453 | 2464 | | |
2454 | 2465 | | |
| |||
0 commit comments