]> git.karo-electronics.de Git - karo-tx-linux.git/commit
rcu: Fix wrong check in list_splice_init_rcu()
authorJan H. Schönherr <schnhrr@cs.tu-berlin.de>
Tue, 19 Jul 2011 19:10:26 +0000 (21:10 +0200)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Mon, 1 Aug 2011 08:36:59 +0000 (01:36 -0700)
commit1c453247984eec6b7af12a4ac6eb03021816a164
tree5f14f830d1b36c3efefaadeba31ac06d44361305
parent4f46900ef402aeeb9afc20d16eb56a8f86237000
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 <schnhrr@cs.tu-berlin.de>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
include/linux/rculist.h