diff --git a/compat/lib-refcount.c b/compat/lib-refcount.c index 5d0582a..8d108f9 100644 --- a/compat/lib-refcount.c +++ b/compat/lib-refcount.c @@ -42,6 +42,7 @@ #include #include #include +#include /** * refcount_add_not_zero_checked - add a value to a refcount unless it is 0 @@ -353,6 +354,8 @@ bool refcount_dec_and_lock(refcount_t *r return false; } + __release(lock); + return true; } EXPORT_SYMBOL(refcount_dec_and_lock); @@ -382,6 +385,8 @@ bool refcount_dec_and_lock_irqsave(refco return false; } + __release(lock); + return true; } EXPORT_SYMBOL(refcount_dec_and_lock_irqsave);