]> git.baikalelectronics.ru Git - kernel.git/commit
rbtree/test: move rb_node to the middle of the test struct
authorCody P Schafer <cody@linux.vnet.ibm.com>
Thu, 23 Jan 2014 23:56:05 +0000 (15:56 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 24 Jan 2014 00:37:03 +0000 (16:37 -0800)
commit3df9a5042fc88faadfddcbc2485c9eaa9e9dfa2b
tree9d680d15fc67586233dc78aca776cd7a2e4ac7fe
parent3be2b5cd9eb5b2496a97867e8d0cc5658c9c470c
rbtree/test: move rb_node to the middle of the test struct

Avoid making the rb_node the first entry to catch some bugs around NULL
checking the rb_node.

Signed-off-by: Cody P Schafer <cody@linux.vnet.ibm.com>
Cc: Michel Lespinasse <walken@google.com>
Cc: Jan Kara <jack@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
lib/rbtree_test.c