summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/idr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/idr.c b/lib/idr.c
index ba2df393c3b0..2642fa8e424d 100644
--- a/lib/idr.c
+++ b/lib/idr.c
@@ -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;