1
0
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:
Kaspar Schleiser 2010-11-01 13:45:30 +01:00
parent 2c42a8a123
commit cc800bcb13

View File

@ -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;
}