aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/super.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/btrfs/super.c')
-rw-r--r--fs/btrfs/super.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/btrfs/super.c b/fs/btrfs/super.c
index 006655c1d1f7..cd0c7cd2c8fb 100644
--- a/fs/btrfs/super.c
+++ b/fs/btrfs/super.c
@@ -507,8 +507,10 @@ static struct dentry *get_default_root(struct super_block *sb,
507 */ 507 */
508 dir_id = btrfs_super_root_dir(&root->fs_info->super_copy); 508 dir_id = btrfs_super_root_dir(&root->fs_info->super_copy);
509 di = btrfs_lookup_dir_item(NULL, root, path, dir_id, "default", 7, 0); 509 di = btrfs_lookup_dir_item(NULL, root, path, dir_id, "default", 7, 0);
510 if (IS_ERR(di)) 510 if (IS_ERR(di)) {
511 btrfs_free_path(path);
511 return ERR_CAST(di); 512 return ERR_CAST(di);
513 }
512 if (!di) { 514 if (!di) {
513 /* 515 /*
514 * Ok the default dir item isn't there. This is weird since 516 * Ok the default dir item isn't there. This is weird since