mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-30 00:41:17 +01:00
check for active_thread != NULL in syscalls.c before using it
fixes #498
This commit is contained in:
parent
d53744e07c
commit
fd083c95a6
@ -70,6 +70,7 @@ void _native_syscall_leave()
|
||||
&& (_native_in_isr == 0)
|
||||
&& (_native_in_syscall == 0)
|
||||
&& (native_interrupts_enabled == 1)
|
||||
&& (active_thread != NULL)
|
||||
)
|
||||
{
|
||||
_native_in_isr = 1;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user