Skip to content

Commit

Permalink
rtmutex: Add missing rcu_read_unlock() in debug_rt_mutex_print_deadlo…
Browse files Browse the repository at this point in the history
…ck()

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
  • Loading branch information
Thomas Gleixner committed Oct 5, 2011
1 parent 0119fee commit 68cc399
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion kernel/rtmutex-debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,10 @@ void debug_rt_mutex_print_deadlock(struct rt_mutex_waiter *waiter)
return;
}

if (!debug_locks_off())
if (!debug_locks_off()) {
rcu_read_unlock();
return;
}

printk("\n============================================\n");
printk( "[ BUG: circular locking deadlock detected! ]\n");
Expand Down

0 comments on commit 68cc399

Please sign in to comment.