aboutsummaryrefslogtreecommitdiffstats
path: root/security/keys/key.c
diff options
context:
space:
mode:
authorDavid Woodhouse <dwmw2@infradead.org>2006-04-21 08:16:49 -0400
committerDavid Woodhouse <dwmw2@infradead.org>2006-04-21 08:16:49 -0400
commitfed306f2baa170220b0299198a39c6be2a91bf19 (patch)
tree366ad7c6f8029608587d5e45738f8c229c3ff924 /security/keys/key.c
parent52b5108ca7490c0609e4dbddd8439bc03d702c99 (diff)
[RBTREE] Update key.c to use rb_parent() accessor macro.
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Diffstat (limited to 'security/keys/key.c')
-rw-r--r--security/keys/key.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/security/keys/key.c b/security/keys/key.c
index b6061fa29da7..3fdc49c6a02c 100644
--- a/security/keys/key.c
+++ b/security/keys/key.c
@@ -211,12 +211,12 @@ static inline void key_alloc_serial(struct key *key)
211 key->serial = 2; 211 key->serial = 2;
212 key_serial_next = key->serial + 1; 212 key_serial_next = key->serial + 1;
213 213
214 if (!parent->rb_parent) 214 if (!rb_parent(parent))
215 p = &key_serial_tree.rb_node; 215 p = &key_serial_tree.rb_node;
216 else if (parent->rb_parent->rb_left == parent) 216 else if (rb_parent(parent)->rb_left == parent)
217 p = &parent->rb_parent->rb_left; 217 p = &(rb_parent(parent)->rb_left);
218 else 218 else
219 p = &parent->rb_parent->rb_right; 219 p = &(rb_parent(parent)->rb_right);
220 220
221 parent = rb_next(parent); 221 parent = rb_next(parent);
222 if (!parent) 222 if (!parent)