1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 19:58:11 +00:00

Kernel: Use Userspace<T> in pledge syscall

This commit is contained in:
Brian Gianforcaro 2020-08-01 16:17:45 -07:00 committed by Andreas Kling
parent ba4cf59d04
commit 2a74c59dec
2 changed files with 2 additions and 2 deletions

View file

@ -29,7 +29,7 @@
namespace Kernel {
int Process::sys$pledge(const Syscall::SC_pledge_params* user_params)
int Process::sys$pledge(Userspace<const Syscall::SC_pledge_params*> user_params)
{
Syscall::SC_pledge_params params;
if (!validate_read_and_copy_typed(&params, user_params))