projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bbd88e1
)
radix-tree: fix private list warnings
author
Matthew Wilcox
<
[email protected]
>
Tue, 24 Jan 2017 23:18:16 +0000
(15:18 -0800)
committer
Linus Torvalds
<
[email protected]
>
Wed, 25 Jan 2017 00:26:14 +0000
(16:26 -0800)
The newly introduced warning in radix_tree_free_nodes() was testing the
wrong variable; it should have been 'old' instead of 'node'.
Fixes: ea07b862ac8e ("mm: workingset: fix use-after-free in shadow node shrinker")
Link:
http://lkml.kernel.org/r/
[email protected]
Signed-off-by: Matthew Wilcox <
[email protected]
>
Signed-off-by: Johannes Weiner <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
lib/radix-tree.c
patch
|
blob
|
history
diff --git
a/lib/radix-tree.c
b/lib/radix-tree.c
index 0b92d605fb69cc805a96c8333dab36174f755e22..84812a9fb16fbbd1409315ea3752fb9a1e3e39ef 100644
(file)
--- a/
lib/radix-tree.c
+++ b/
lib/radix-tree.c
@@
-769,7
+769,7
@@
static void radix_tree_free_nodes(struct radix_tree_node *node)
struct radix_tree_node *old = child;
offset = child->offset + 1;
child = child->parent;
- WARN_ON_ONCE(!list_empty(&
node
->private_list));
+ WARN_ON_ONCE(!list_empty(&
old
->private_list));
radix_tree_node_free(old);
if (old == entry_to_node(node))
return;