mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-29 04:13:24 +00:00
Change the return value of dup() for Vmo<Rights>
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
e6b0fd8aa3
commit
770a123415
@ -45,7 +45,7 @@ impl PageCache {
|
||||
// TODO: The capability is too high,restrict it to eliminate the possibility of misuse.
|
||||
// For example, the `resize` api should be forbidded.
|
||||
pub fn pages(&self) -> Vmo<Full> {
|
||||
self.pages.dup().unwrap()
|
||||
self.pages.dup()
|
||||
}
|
||||
|
||||
/// Evict the data within a specified range from the page cache and persist
|
||||
|
Reference in New Issue
Block a user