diff options
-rw-r--r-- | fs/btrfs/file-item.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/btrfs/file-item.c b/fs/btrfs/file-item.c index d0bc72657cd7..4f19a3e1bf32 100644 --- a/fs/btrfs/file-item.c +++ b/fs/btrfs/file-item.c | |||
@@ -550,7 +550,10 @@ int btrfs_del_csums(struct btrfs_trans_handle *trans, | |||
550 | if (path->slots[0] == 0) | 550 | if (path->slots[0] == 0) |
551 | goto out; | 551 | goto out; |
552 | path->slots[0]--; | 552 | path->slots[0]--; |
553 | } else if (ret < 0) { | ||
554 | goto out; | ||
553 | } | 555 | } |
556 | |||
554 | leaf = path->nodes[0]; | 557 | leaf = path->nodes[0]; |
555 | btrfs_item_key_to_cpu(leaf, &key, path->slots[0]); | 558 | btrfs_item_key_to_cpu(leaf, &key, path->slots[0]); |
556 | 559 | ||