diff options
Diffstat (limited to 'disk-io.h')
-rw-r--r-- | disk-io.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -123,7 +123,8 @@ struct btrfs_fs_info *open_ctree_fs_info(const char *filename, int close_ctree_fs_info(struct btrfs_fs_info *fs_info); static inline int close_ctree(struct btrfs_root *root) { - BUG_ON(!root); + if (!root) + return 0; return close_ctree_fs_info(root->fs_info); } |