diff options
Diffstat (limited to 'fs/btrfs/file.c')
-rw-r--r-- | fs/btrfs/file.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/btrfs/file.c b/fs/btrfs/file.c index 6e56a468d1f5..41ca5fdaee6c 100644 --- a/fs/btrfs/file.c +++ b/fs/btrfs/file.c | |||
@@ -855,7 +855,8 @@ int btrfs_mark_extent_written(struct btrfs_trans_handle *trans, | |||
855 | btrfs_drop_extent_cache(inode, start, end - 1, 0); | 855 | btrfs_drop_extent_cache(inode, start, end - 1, 0); |
856 | 856 | ||
857 | path = btrfs_alloc_path(); | 857 | path = btrfs_alloc_path(); |
858 | BUG_ON(!path); | 858 | if (!path) |
859 | return -ENOMEM; | ||
859 | again: | 860 | again: |
860 | recow = 0; | 861 | recow = 0; |
861 | split = start; | 862 | split = start; |