From cc800bcb1374ca31bfa4e00280dfbe57ed966f5b Mon Sep 17 00:00:00 2001 From: Kaspar Schleiser Date: Mon, 1 Nov 2010 13:45:30 +0100 Subject: [PATCH] * honour previous IRQ state in error path --- core/mutex.c | 1 + 1 file changed, 1 insertion(+) diff --git a/core/mutex.c b/core/mutex.c index b337a85fbe..42e356196a 100644 --- a/core/mutex.c +++ b/core/mutex.c @@ -107,6 +107,7 @@ void mutex_wake_waiters(struct mutex_t *mutex, int flags) { /* queue is empty */ if (!next) { mutex->val = 0; + if ( ! (flags & MUTEX_INISR)) eINT(); return; }