diff options
Diffstat (limited to 'firmware/buflib.c')
-rw-r--r-- | firmware/buflib.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/buflib.c b/firmware/buflib.c index f7ef35ea8b..7c5f3d208e 100644 --- a/firmware/buflib.c +++ b/firmware/buflib.c | |||
@@ -425,7 +425,7 @@ handle_alloc: | |||
425 | goto handle_alloc; | 425 | goto handle_alloc; |
426 | } | 426 | } |
427 | } | 427 | } |
428 | return 0; | 428 | return -1; |
429 | } | 429 | } |
430 | } | 430 | } |
431 | 431 | ||
@@ -471,7 +471,7 @@ buffer_alloc: | |||
471 | } else { | 471 | } else { |
472 | handle->val=1; | 472 | handle->val=1; |
473 | handle_free(ctx, handle); | 473 | handle_free(ctx, handle); |
474 | return 0; | 474 | return -2; |
475 | } | 475 | } |
476 | } | 476 | } |
477 | 477 | ||