Linux 3.2.12
[pandora-kernel.git] / kernel / rtmutex-debug.c
index cb1ced6..8eafd1b 100644 (file)
@@ -18,7 +18,7 @@
  */
 #include <linux/sched.h>
 #include <linux/delay.h>
-#include <linux/module.h>
+#include <linux/export.h>
 #include <linux/spinlock.h>
 #include <linux/kallsyms.h>
 #include <linux/syscalls.h>
@@ -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");