summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--common/malloc_simple.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/common/malloc_simple.c b/common/malloc_simple.c
index 2467e636eb..56f729fae2 100644
--- a/common/malloc_simple.c
+++ b/common/malloc_simple.c
@@ -23,6 +23,7 @@ static void *alloc_simple(size_t bytes, int align)
gd->malloc_limit);
if (new_ptr > gd->malloc_limit) {
pr_err("alloc space exhausted\n");
+ for (;;);
return NULL;
}