]> 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, 1 Sep 2011 03:28:46 +0000 (13:28 +1000)
commitec6b6d60464d1f1e9bfbc3e3069fd7ecb66bd713
treede2adabc7540a10dc20160650c01c4944b5ba040
parent53ec82a7d2679af2ed4d1a60f82b407cac449e3f
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