fix: copy_pt return value check
This commit is contained in:
@ -61,7 +61,7 @@ static int deep_copy(struct pcb *new_pcb)
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
PD[i + USER_PT_END / 2] = (uint32_t)new_pt | INIT_FLAGS;
|
PD[i + USER_PT_END / 2] = (uint32_t)new_pt | INIT_FLAGS;
|
||||||
if (!copy_pt(PTE2VA(1023, i), PTE2VA(1023, i + USER_PT_END / 2),
|
if (copy_pt(PTE2VA(1023, i), PTE2VA(1023, i + USER_PT_END / 2),
|
||||||
i)) {
|
i)) {
|
||||||
free_pts();
|
free_pts();
|
||||||
return -1;
|
return -1;
|
||||||
|
|||||||
Reference in New Issue
Block a user