Log a message when sbrk fails and return the correct error code.
authorTobias Diedrich <ranma+coreboot@tdiedrich.de>
Mon, 19 Oct 2015 17:32:12 +0000 (19:32 +0200)
committerTobias Diedrich <ranma+coreboot@tdiedrich.de>
Mon, 19 Oct 2015 17:34:16 +0000 (19:34 +0200)
commit7aa4eb70f3e8f0eaf5cf936e75ed2daf2b0b9b7f
tree43e359dd5de007047317912a9a7a55317fe1ece1
parenta404a56e48c2796e4621b42cd461bf5e95ea5e09
Log a message when sbrk fails and return the correct error code.

Returning NULL leads to subtle corruption and malloc returning memory
addresses in the user mode space range (0x00000000-0x7fffffff).

This in turn also breaks everything that implicitly relies on malloc()ed
memory to be zeroed at the beginning (since the malloc arena is
initially zeroed).
u-boot/lib_mips/board.c