]> 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, 24 Aug 2011 23:46:48 +0000 (09:46 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 15 Sep 2011 06:21:22 +0000 (16:21 +1000)
commit6576897986267a96f7f13f5dfb441bbc22bebe22
tree8279195fc749f674fb04cb6a07778ce3a76ed1f8
parent33f9038e7b9413c1a4e40290a5232cf6595272a8
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