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();
|
||||
/* segment s still locked, fixfault() unlocks */
|
||||
if(!waserror()){
|
||||
if(fixfault(s, offset, read, 0) == 0)
|
||||
break;
|
||||
poperror();
|
||||
if(waserror()){
|
||||
putseg(s);
|
||||
nexterror();
|
||||
}
|
||||
if(fixfault(s, offset, read, 0) == 0)
|
||||
break;
|
||||
putseg(s);
|
||||
poperror();
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue