devproc: fix mistake
This commit is contained in:
parent
655ec332a7
commit
e4db040bcf
1 changed files with 6 additions and 4 deletions
|
@ -1614,12 +1614,14 @@ procctlmemio(Proc *p, uintptr offset, int n, void *va, int read)
|
||||||
poperror();
|
poperror();
|
||||||
poperror();
|
poperror();
|
||||||
/* segment s still locked, fixfault() unlocks */
|
/* segment s still locked, fixfault() unlocks */
|
||||||
if(!waserror()){
|
if(waserror()){
|
||||||
if(fixfault(s, offset, read, 0) == 0)
|
putseg(s);
|
||||||
break;
|
nexterror();
|
||||||
poperror();
|
|
||||||
}
|
}
|
||||||
|
if(fixfault(s, offset, read, 0) == 0)
|
||||||
|
break;
|
||||||
putseg(s);
|
putseg(s);
|
||||||
|
poperror();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue