1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 18:17:44 +00:00

Kernel: Return ENOSYS if an invalid syscall number is requested.

This commit is contained in:
Andreas Kling 2019-05-23 17:02:58 +02:00
parent 6917c42140
commit 9806a23f83

View file

@ -278,7 +278,7 @@ static dword handle(RegisterDump& regs, dword function, dword arg1, dword arg2,
return current->process().sys$getpeername((int)arg1, (sockaddr*)arg2, (socklen_t*)arg3);
default:
kprintf("<%u> int0x82: Unknown function %u requested {%x, %x, %x}\n", current->process().pid(), function, arg1, arg2, arg3);
break;
return -ENOSYS;
}
return 0;
}