kernel: fix last SharedToCow unreachable!() in shared page path
This commit is contained in:
@@ -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),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user