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)) ||
|
if ((p > (&dummy - STACK_BUFFER)) ||
|
||||||
(p < _end))
|
(p < _end))
|
||||||
|
{
|
||||||
|
errno = ENOMEM;
|
||||||
return -1;
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
current = p;
|
current = p;
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in a new issue