mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
* honour previous IRQ state in error path
This commit is contained in:
parent
2c42a8a123
commit
cc800bcb13
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user