Forgot to check in the change to qemuppc's brk() to set errno on memory

allocation failure.
This commit is contained in:
David Given 2016-11-24 19:47:11 +01:00
parent 3b46aadf94
commit 899f1ea4f3

View file

@ -22,7 +22,10 @@ int brk(void* newend)
if ((p > (&dummy - STACK_BUFFER)) ||
(p < _end))
{
errno = ENOMEM;
return -1;
}
current = p;
return 0;