mirror of
https://github.com/panpaul/tiny_os
synced 2024-09-20 09:45:19 +08:00
fix: untyped retype: check null
This commit is contained in:
parent
18240fec26
commit
5ea8a56611
@ -89,7 +89,7 @@ impl UntypedCap<'_> {
|
|||||||
slots
|
slots
|
||||||
.iter()
|
.iter()
|
||||||
.any(|cte| NullCap::try_from(cte).is_err())
|
.any(|cte| NullCap::try_from(cte).is_err())
|
||||||
.then_ok((), SysError::CapTypeMismatch)?;
|
.else_ok((), SysError::CapTypeMismatch)?;
|
||||||
|
|
||||||
// Start allocating from free_offset
|
// Start allocating from free_offset
|
||||||
// Notice: in vallina seL4, it will check whether there are child nodes,
|
// Notice: in vallina seL4, it will check whether there are child nodes,
|
||||||
|
Loading…
Reference in New Issue
Block a user