Kernel: Remove a bunch of no-longer-necessary SmapDisablers

We forgot to remove the automatic SMAP disablers after fixing up all
this code to not access userspace memory directly. Let's lock things
down at last. :^)
This commit is contained in:
Andreas Kling 2021-01-17 14:49:14 +01:00
parent fd441b954d
commit 1730c23775
Notes: sideshowbarker 2024-07-18 23:08:33 +09:00
5 changed files with 0 additions and 10 deletions

View file

@ -48,7 +48,6 @@ int Process::sys$dbgputstr(Userspace<const u8*> characters, int length)
if (length <= 0)
return 0;
SmapDisabler disabler;
auto buffer = UserOrKernelBuffer::for_user_buffer(characters, length);
if (!buffer.has_value())
return -EFAULT;