mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
Merge pull request #588 from LudwigOrtmann/issue_498
check for active_thread != NULL in syscalls.c before using it
This commit is contained in:
commit
96bb0ead09
@ -70,6 +70,7 @@ void _native_syscall_leave()
|
|||||||
&& (_native_in_isr == 0)
|
&& (_native_in_isr == 0)
|
||||||
&& (_native_in_syscall == 0)
|
&& (_native_in_syscall == 0)
|
||||||
&& (native_interrupts_enabled == 1)
|
&& (native_interrupts_enabled == 1)
|
||||||
|
&& (active_thread != NULL)
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
_native_in_isr = 1;
|
_native_in_isr = 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user