]> git.baikalelectronics.ru Git - kernel.git/commit
radix-tree: fix private list warnings
authorMatthew Wilcox <mawilcox@microsoft.com>
Tue, 24 Jan 2017 23:18:16 +0000 (15:18 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 25 Jan 2017 00:26:14 +0000 (16:26 -0800)
commit71616618c926e9e8b059499472012f28fae480f2
tree23a87b888bc6de410ef7356abe829f0d64f30481
parent75a24ea973acff49d833fa89237ffbe7a8d937f2
radix-tree: fix private list warnings

The newly introduced warning in radix_tree_free_nodes() was testing the
wrong variable; it should have been 'old' instead of 'node'.

Fixes: f4ad06a0e853 ("mm: workingset: fix use-after-free in shadow node shrinker")
Link: http://lkml.kernel.org/r/20170118163746.GA32495@cmpxchg.org
Signed-off-by: Matthew Wilcox <mawilcox@microsoft.com>
Signed-off-by: Johannes Weiner <hannes@cmpxchg.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
lib/radix-tree.c