]> git.karo-electronics.de Git - karo-tx-linux.git/commit
radix_tree_tag_get()'s BUG (when it sees a tag after saw_unset_tag) was
authorHugh Dickins <hughd@google.com>
Wed, 3 Aug 2011 00:52:50 +0000 (10:52 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 9 Aug 2011 03:12:27 +0000 (13:12 +1000)
commit91eb9cb2b100aeef3dfcffd8935417c030994bbf
tree6136f54d4df9a9dc3791818e19aac04875ff856a
parent02308e66a2e3997f35e7a97a02ff2ae6028caeed
radix_tree_tag_get()'s BUG (when it sees a tag after saw_unset_tag) was
unsafe and removed in 2.6.34, but the pointless saw_unset_tag left behind.

Remove it now, and return 0 as soon as we see unset tag - we already rely
upon the root tag to be correct, returning 0 immediately if it's not set.

Signed-off-by: Hugh Dickins <hughd@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
lib/radix-tree.c