1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

Merge pull request #4082 from daniel-k/pr/msg_reply_missing_irq_restore

core/msg: add missing irq restoration in msg_reply()
This commit is contained in:
Joakim Nohlgård 2016-03-04 15:59:06 +01:00
commit e088403ce0

View File

@ -227,13 +227,7 @@ int msg_reply(msg_t *m, msg_t *reply)
unsigned state = disableIRQ();
tcb_t *target = (tcb_t*) sched_threads[m->sender_pid];
if (!target) {
DEBUG("msg_reply(): %" PRIkernel_pid ": Target \"%" PRIkernel_pid
"\" not existing...dropping msg!\n", sched_active_thread->pid,
m->sender_pid);
return -1;
}
assert(target != NULL);
if (target->status != STATUS_REPLY_BLOCKED) {
DEBUG("msg_reply(): %" PRIkernel_pid ": Target \"%" PRIkernel_pid