Kernel: Add fast path for invalid address during region pin
Before I was falling through to the write lock which does allocation, but as the read loop already saw, specified address was not mapped.
This commit is contained in:
@@ -3884,6 +3884,8 @@ namespace Kernel
|
|||||||
region->pin();
|
region->pin();
|
||||||
return region.ptr();
|
return region.ptr();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return BAN::Error::from_errno(EFAULT);
|
||||||
}
|
}
|
||||||
|
|
||||||
validate_and_pin_pointer_access_with_allocation:
|
validate_and_pin_pointer_access_with_allocation:
|
||||||
|
|||||||
Reference in New Issue
Block a user