kernel: fix usermode_bootstrap stack mmap error handling

The .map_err().?() pattern doesn't work in a function returning (),
because ? requires the enclosing function to return Result. Replace
with plain .expect() (these are bootstrap initialization failures —
if mmap fails here, the kernel cannot continue).
This commit is contained in:
2026-07-10 23:00:45 +03:00
parent 957392830a
commit ce640bea73
+1 -2
View File
@@ -334,8 +334,7 @@ pub unsafe fn usermode_bootstrap(bootstrap: &Bootstrap, token: &mut CleanLockTok
flusher,
)?)
},
)
.map_err(|e| format!("failed to mmap bootstrap stack: {e:?}"))?;
);
};
debug!(
"Bootstrap stack mapped at {:#x}..{:#x} ({} pages)",