Skip to content
Commit 7f708931 authored by Jan H. Schönherr's avatar Jan H. Schönherr Committed by Paul E. McKenney
Browse files

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: default avatarJan H. Schönherr <schnhrr@cs.tu-berlin.de>
Signed-off-by: default avatarPaul E. McKenney <paulmck@linux.vnet.ibm.com>
parent cefcb602
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment