Skip to content
Snippets Groups Projects
Commit cc800bcb authored by Kaspar Schleiser's avatar Kaspar Schleiser
Browse files

* honour previous IRQ state in error path

parent 2c42a8a1
No related branches found
No related tags found
No related merge requests found
...@@ -107,6 +107,7 @@ void mutex_wake_waiters(struct mutex_t *mutex, int flags) { ...@@ -107,6 +107,7 @@ void mutex_wake_waiters(struct mutex_t *mutex, int flags) {
/* queue is empty */ /* queue is empty */
if (!next) { if (!next) {
mutex->val = 0; mutex->val = 0;
if ( ! (flags & MUTEX_INISR)) eINT();
return; return;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment