File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -11,4 +11,4 @@ log = "0.4"
11
11
spinlock = { path = " ../../crates/spinlock" }
12
12
memory_addr = { path = " ../../crates/memory_addr" }
13
13
allocator = { path = " ../../crates/allocator" }
14
- axerror = { path = " ../axerror " }
14
+ axerrno = { path = " ../../crates/axerrno " }
Original file line number Diff line number Diff line change 1
1
use allocator:: AllocError ;
2
- use axerror :: { AxError , AxResult } ;
2
+ use axerrno :: { AxError , AxResult } ;
3
3
use memory_addr:: { PhysAddr , VirtAddr } ;
4
4
5
5
use crate :: { global_allocator, PAGE_SIZE } ;
@@ -99,7 +99,7 @@ impl Drop for GlobalPage {
99
99
const fn alloc_err_to_ax_err ( e : AllocError ) -> AxError {
100
100
match e {
101
101
AllocError :: InvalidParam | AllocError :: MemoryOverlap | AllocError :: NotAllocated => {
102
- AxError :: InvalidParam
102
+ AxError :: InvalidInput
103
103
}
104
104
AllocError :: NoMemory => AxError :: NoMemory ,
105
105
}
You can’t perform that action at this time.
0 commit comments