devproc: fix mistake

This commit is contained in:
cinap_lenrek 2014-07-14 06:45:23 +02:00
parent 655ec332a7
commit e4db040bcf

View file

@ -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(waserror()){
putseg(s);
nexterror();
}
if(fixfault(s, offset, read, 0) == 0)
break;
poperror();
}
putseg(s);
poperror();
}
/*