Forgot to check in the change to qemuppc's brk() to set errno on memory
authorDavid Given <dg@cowlark.com>
Thu, 24 Nov 2016 18:47:11 +0000 (19:47 +0100)
committerDavid Given <dg@cowlark.com>
Thu, 24 Nov 2016 18:47:11 +0000 (19:47 +0100)
allocation failure.

plat/qemuppc/libsys/brk.c

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