Forgot to check in the change to qemuppc's brk() to set errno on memory
allocation failure.
This commit is contained in:
parent
3b46aadf94
commit
899f1ea4f3
|
@ -22,7 +22,10 @@ int brk(void* newend)
|
|||
|
||||
if ((p > (&dummy - STACK_BUFFER)) ||
|
||||
(p < _end))
|
||||
{
|
||||
errno = ENOMEM;
|
||||
return -1;
|
||||
}
|
||||
|
||||
current = p;
|
||||
return 0;
|
||||
|
|
Loading…
Reference in a new issue