mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-25 14:33:52 +01:00
sys: posix_io: bail out on invalid target thread
This commit is contained in:
parent
5653974439
commit
c926e2c38a
@ -47,6 +47,9 @@ static int _posix_fileop_data(kernel_pid_t pid, int op, char *buffer, int nbytes
|
||||
|
||||
int posix_open(int pid, int flags)
|
||||
{
|
||||
if (pid == KERNEL_PID_UNDEF) {
|
||||
return -1;
|
||||
}
|
||||
return _posix_fileop((kernel_pid_t) pid, OPEN, flags);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user