summaryrefslogtreecommitdiff
path: root/lib/crc-t10dif.c
diff options
context:
space:
mode:
authorJan H. Schönherr <schnhrr@cs.tu-berlin.de>2011-07-19 23:10:26 +0400
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>2011-07-21 01:10:20 +0400
commit7f70893173b056df691b2ee7546bb44fd9abae6a (patch)
tree5ac9a61694116b0743b3f407ee935bb07e9271e2 /lib/crc-t10dif.c
parentcefcb602012482003ca2ccc44fcba628d006e4bd (diff)
downloadlinux-7f70893173b056df691b2ee7546bb44fd9abae6a.tar.xz
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>
Diffstat (limited to 'lib/crc-t10dif.c')
0 files changed, 0 insertions, 0 deletions