diff options
-rw-r--r-- | fs/btrfs/check-integrity.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/fs/btrfs/check-integrity.c b/fs/btrfs/check-integrity.c index 0e8388e72d8d..ce92ae30250f 100644 --- a/fs/btrfs/check-integrity.c +++ b/fs/btrfs/check-integrity.c | |||
@@ -1093,6 +1093,7 @@ leaf_item_out_of_bounce_error: | |||
1093 | next_stack = | 1093 | next_stack = |
1094 | btrfsic_stack_frame_alloc(); | 1094 | btrfsic_stack_frame_alloc(); |
1095 | if (NULL == next_stack) { | 1095 | if (NULL == next_stack) { |
1096 | sf->error = -1; | ||
1096 | btrfsic_release_block_ctx( | 1097 | btrfsic_release_block_ctx( |
1097 | &sf-> | 1098 | &sf-> |
1098 | next_block_ctx); | 1099 | next_block_ctx); |
@@ -1190,8 +1191,10 @@ continue_with_current_node_stack_frame: | |||
1190 | sf->next_block_ctx.datav[0]; | 1191 | sf->next_block_ctx.datav[0]; |
1191 | 1192 | ||
1192 | next_stack = btrfsic_stack_frame_alloc(); | 1193 | next_stack = btrfsic_stack_frame_alloc(); |
1193 | if (NULL == next_stack) | 1194 | if (NULL == next_stack) { |
1195 | sf->error = -1; | ||
1194 | goto one_stack_frame_backwards; | 1196 | goto one_stack_frame_backwards; |
1197 | } | ||
1195 | 1198 | ||
1196 | next_stack->i = -1; | 1199 | next_stack->i = -1; |
1197 | next_stack->block = sf->next_block; | 1200 | next_stack->block = sf->next_block; |