diff --git a/[refs] b/[refs] index 509ab1176529..c720bbda044f 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 260219cc48cfb22486e5d0d706c978228a080d63 +refs/heads/master: 1b23336ad98b3666c216617227c7767cd60a22be diff --git a/trunk/lib/idr.c b/trunk/lib/idr.c index c11c5765cdef..dab4bca86f5d 100644 --- a/trunk/lib/idr.c +++ b/trunk/lib/idr.c @@ -449,6 +449,7 @@ void idr_remove_all(struct idr *idp) n = idp->layers * IDR_BITS; p = idp->top; + rcu_assign_pointer(idp->top, NULL); max = 1 << n; id = 0; @@ -467,7 +468,6 @@ void idr_remove_all(struct idr *idp) p = *--paa; } } - rcu_assign_pointer(idp->top, NULL); idp->layers = 0; } EXPORT_SYMBOL(idr_remove_all);