]> 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)
commite7aea3f0540cd21b4976e6084f3a8bf8b509afdd
tree23a87b888bc6de410ef7356abe829f0d64f30481
parentdb7dcfdec2de87955a1eb4bc686629f280c0f57b
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: 9f86ce5033e2 ("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