kernel: fix last SharedToCow unreachable!() in shared page path

This commit is contained in:
2026-07-10 09:25:32 +03:00
parent 30e9235e44
commit efbb92f8ae
+4 -1
View File
@@ -2668,7 +2668,10 @@ fn correct_inner<'l>(
new_frame
}
Err(AddRefError::SharedToCow) => unreachable!(),
Err(AddRefError::SharedToCow) => {
log::error!("unexpected SharedToCow in shared page path");
return Err(PfError::Oom);
}
Err(AddRefError::RcOverflow) => return Err(PfError::Oom),
}
}