]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - kernel/mutex.c
ARM: OMAP: MUSB: DMA interrupt locking fix
[linux-2.6-omap-h63xx.git] / kernel / mutex.c
index 7a3f32761f2674e814e461d7a4039235b1dcb33f..691b86564dd97fbe8f88e75a0f1cd6024cf6762b 100644 (file)
@@ -180,8 +180,8 @@ __mutex_lock_common(struct mutex *lock, long state, unsigned int subclass)
                spin_lock_mutex(&lock->wait_lock, flags);
        }
 
-       lock_acquired(&lock->dep_map);
 done:
+       lock_acquired(&lock->dep_map);
        /* got the lock - rejoice! */
        mutex_remove_waiter(lock, &waiter, task_thread_info(task));
        debug_mutex_set_owner(lock, task_thread_info(task));