kernel: handle memimageinit() error
This commit is contained in:
parent
d56a6fadc5
commit
cfc705b866
1 changed files with 2 additions and 1 deletions
|
@ -48,7 +48,8 @@ screensize(int x, int y, int, ulong chan)
|
|||
nexterror();
|
||||
}
|
||||
|
||||
memimageinit();
|
||||
if(memimageinit() < 0)
|
||||
error("memimageinit failed");
|
||||
|
||||
lock(&vgascreenlock);
|
||||
if(waserror()){
|
||||
|
|
Loading…
Reference in a new issue