diff options
| author | Jan H. Schönherr <[email protected]> | 2011-07-19 19:10:26 +0000 |
|---|---|---|
| committer | Paul E. McKenney <[email protected]> | 2011-07-20 21:10:20 +0000 |
| commit | 7f70893173b056df691b2ee7546bb44fd9abae6a (patch) | |
| tree | 5ac9a61694116b0743b3f407ee935bb07e9271e2 /net/tipc/core.h | |
| parent | net,rcu: Convert call_rcu(xt_rateest_free_rcu) to kfree_rcu() (diff) | |
| download | kernel-7f70893173b056df691b2ee7546bb44fd9abae6a.tar.gz kernel-7f70893173b056df691b2ee7546bb44fd9abae6a.zip | |
rcu: Fix wrong check in list_splice_init_rcu()
If the list to be spliced is empty, then list_splice_init_rcu() has
nothing to do. Unfortunately, list_splice_init_rcu() does not check
the list to be spliced; it instead checks the list to be spliced into.
This results in memory leaks given current usage. This commit
therefore fixes the empty-list check.
Signed-off-by: Jan H. Schönherr <[email protected]>
Signed-off-by: Paul E. McKenney <[email protected]>
Diffstat (limited to 'net/tipc/core.h')
0 files changed, 0 insertions, 0 deletions
