Skip to content

Commit

Permalink
crates/sel4-capdl-initializer: Fix bug
Browse files Browse the repository at this point in the history
Fix bug in cap mint optimization.

Signed-off-by: Nick Spinale <[email protected]>
  • Loading branch information
nspin committed Mar 5, 2024
1 parent 0404ca7 commit f4d0c2d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/sel4-capdl-initializer/core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -657,8 +657,8 @@ impl<'a, N: ObjectName, D: Content, M: GetEmbeddedFrame, B: BorrowMut<[PerObject
Some(cap) => {
let orig = self.orig_cap::<cap_type::Endpoint>(cap.object);
let badge = cap.badge;
let rights = (&cap.rights).into();
if badge == 0 || rights == CapRights::all() {
let rights = cap.rights.into();
if badge == 0 && rights == CapRights::all() {
orig
} else {
let src = init_thread::slot::CNODE.cap().relative(orig);
Expand Down

0 comments on commit f4d0c2d

Please sign in to comment.