From 899f1ea4f311e48bc48557bbf3c227c7a088c828 Mon Sep 17 00:00:00 2001 From: David Given Date: Thu, 24 Nov 2016 19:47:11 +0100 Subject: [PATCH] Forgot to check in the change to qemuppc's brk() to set errno on memory allocation failure. --- plat/qemuppc/libsys/brk.c | 3 +++ 1 file changed, 3 insertions(+) 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;