public
/
ack.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3b46aad
)
Forgot to check in the change to qemuppc's brk() to set errno on memory
author
David Given
<dg@cowlark.com>
Thu, 24 Nov 2016 18:47:11 +0000
(19:47 +0100)
committer
David Given
<dg@cowlark.com>
Thu, 24 Nov 2016 18:47:11 +0000
(19:47 +0100)
allocation failure.
plat/qemuppc/libsys/brk.c
patch
|
blob
|
history
diff --git
a/plat/qemuppc/libsys/brk.c
b/plat/qemuppc/libsys/brk.c
index
952a9c7
..
118bda3
100644
(file)
--- 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;