summaryrefslogtreecommitdiff
path: root/kernel/mutex.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/mutex.c')
-rw-r--r--kernel/mutex.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/mutex.c b/kernel/mutex.c
index 386ad5da47a5..98164a55a4dc 100644
--- a/kernel/mutex.c
+++ b/kernel/mutex.c
@@ -489,7 +489,8 @@ __mutex_lock_common(struct mutex *lock, long state, unsigned int subclass,
mutex_set_owner(lock);
mspin_unlock(MLOCK(lock), &node);
- goto done;
+ preempt_enable();
+ return 0;
}
mspin_unlock(MLOCK(lock), &node);
@@ -596,7 +597,6 @@ skip_wait:
}
spin_unlock_mutex(&lock->wait_lock, flags);
-done:
preempt_enable();
return 0;