summaryrefslogtreecommitdiffstats
path: root/mm/vmscan.c
diff options
context:
space:
mode:
authorPeter Zijlstra2006-06-23 11:03:25 +0200
committerLinus Torvalds2006-06-23 16:42:49 +0200
commit4c91c3648c620003cb7b21b8858f36cd6132e168 (patch)
tree6572fedb9a18ba0b31695f1ba30a219621b6f20a /mm/vmscan.c
parent[PATCH] slab: redzone double-free detection (diff)
downloadkernel-qcow2-linux-4c91c3648c620003cb7b21b8858f36cd6132e168.tar.gz
kernel-qcow2-linux-4c91c3648c620003cb7b21b8858f36cd6132e168.tar.xz
kernel-qcow2-linux-4c91c3648c620003cb7b21b8858f36cd6132e168.zip
[PATCH] buglet in radix_tree_tag_set
The comment states: 'Setting a tag on a not-present item is a BUG.' Hence if 'index' is larger than the maxindex; the item _cannot_ be presen; it should also be a BUG. Also, this allows the following statement (assume a fresh tree): radix_tree_tag_set(root, 16, 1); to fail silently, but when preceded by: radix_tree_insert(root, 32, item); it would BUG, because the height has been extended by the insert. In neither case was 16 present. Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl> Acked-by: Nick Piggin <npiggin@suse.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'mm/vmscan.c')
0 files changed, 0 insertions, 0 deletions