diff --git a/plat/qemuppc/libsys/brk.c b/plat/qemuppc/libsys/brk.c index 952a9c747..118bda3cf 100644 --- a/plat/qemuppc/libsys/brk.c +++ b/plat/qemuppc/libsys/brk.c @@ -22,7 +22,10 @@ int brk(void* newend) if ((p > (&dummy - STACK_BUFFER)) || (p < _end)) + { + errno = ENOMEM; return -1; + } current = p; return 0;