From: Jan H. Schönherr Date: Tue, 19 Jul 2011 19:10:26 +0000 (+0200) Subject: rcu: Fix wrong check in list_splice_init_rcu() X-Git-Tag: v3.1-rc1~300^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7f70893173b056df691b2ee7546bb44fd9abae6a;p=pandora-kernel.git 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 Signed-off-by: Paul E. McKenney --- Reading git-diff-tree failed