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:
commit
e088403ce0
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user