mirror of
https://github.com/RGBCube/serenity
synced 2025-07-07 12:57:35 +00:00
Kernel: Remove unnecessary wraparound check in Process::validate_read()
This will be checked moments later by MM.validate_user_read().
This commit is contained in:
parent
587b80bf0f
commit
8345f51a24
1 changed files with 0 additions and 3 deletions
|
@ -2024,9 +2024,6 @@ bool Process::validate_read(const void* address, ssize_t size) const
|
|||
{
|
||||
ASSERT(size >= 0);
|
||||
VirtualAddress first_address((u32)address);
|
||||
VirtualAddress last_address = first_address.offset(size - 1);
|
||||
if (last_address < first_address)
|
||||
return false;
|
||||
if (is_ring0()) {
|
||||
auto kmc_result = check_kernel_memory_access(first_address, false);
|
||||
if (kmc_result == KernelMemoryCheckResult::AccessGranted)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue