diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/idr.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -533,7 +533,7 @@ static void sub_remove(struct idr *idp, int shift, int id) | |||
533 | n = id & IDR_MASK; | 533 | n = id & IDR_MASK; |
534 | if (likely(p != NULL && test_bit(n, p->bitmap))) { | 534 | if (likely(p != NULL && test_bit(n, p->bitmap))) { |
535 | __clear_bit(n, p->bitmap); | 535 | __clear_bit(n, p->bitmap); |
536 | rcu_assign_pointer(p->ary[n], NULL); | 536 | RCU_INIT_POINTER(p->ary[n], NULL); |
537 | to_free = NULL; | 537 | to_free = NULL; |
538 | while(*paa && ! --((**paa)->count)){ | 538 | while(*paa && ! --((**paa)->count)){ |
539 | if (to_free) | 539 | if (to_free) |
@@ -602,7 +602,7 @@ static void __idr_remove_all(struct idr *idp) | |||
602 | 602 | ||
603 | n = idp->layers * IDR_BITS; | 603 | n = idp->layers * IDR_BITS; |
604 | p = idp->top; | 604 | p = idp->top; |
605 | rcu_assign_pointer(idp->top, NULL); | 605 | RCU_INIT_POINTER(idp->top, NULL); |
606 | max = idr_max(idp->layers); | 606 | max = idr_max(idp->layers); |
607 | 607 | ||
608 | id = 0; | 608 | id = 0; |