From 57b8d173ff1c7632ca581cf5d5176742940d31d3 Mon Sep 17 00:00:00 2001 From: Frank Liepold Date: Tue, 7 May 2013 11:17:30 +0200 Subject: [PATCH] light: correct error code OOM --- kernel/sy_old/mars_light.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/sy_old/mars_light.c b/kernel/sy_old/mars_light.c index 6ae39969..7a48ccd4 100644 --- a/kernel/sy_old/mars_light.c +++ b/kernel/sy_old/mars_light.c @@ -197,7 +197,7 @@ done: limit += global_free_space_0; if (unlikely(global_total_space < limit)) { - return -ENOMEM; + return -ENOSPC; } return 0; }