light: correct error code OOM

This commit is contained in:
Frank Liepold 2013-05-07 11:17:30 +02:00 committed by Thomas Schoebel-Theuer
parent 30f97cd23f
commit 57b8d173ff

View File

@ -197,7 +197,7 @@ done:
limit += global_free_space_0; limit += global_free_space_0;
if (unlikely(global_total_space < limit)) { if (unlikely(global_total_space < limit)) {
return -ENOMEM; return -ENOSPC;
} }
return 0; return 0;
} }