summaryrefslogtreecommitdiff
path: root/file-item.c
diff options
context:
space:
mode:
Diffstat (limited to 'file-item.c')
-rw-r--r--file-item.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/file-item.c b/file-item.c
index 9c787f06..82bf99e6 100644
--- a/file-item.c
+++ b/file-item.c
@@ -417,6 +417,8 @@ int btrfs_del_csums(struct btrfs_trans_handle *trans,
root = root->fs_info->csum_root;
path = btrfs_alloc_path();
+ if (!path)
+ return -ENOMEM;
while (1) {
key.objectid = BTRFS_EXTENT_CSUM_OBJECTID;