|
@@ -1677,6 +1677,7 @@ static struct dentry *btrfs_mount(struct file_system_type *fs_type, int flags,
|
|
|
flags | SB_RDONLY, device_name, data);
|
|
flags | SB_RDONLY, device_name, data);
|
|
|
if (IS_ERR(mnt_root)) {
|
|
if (IS_ERR(mnt_root)) {
|
|
|
root = ERR_CAST(mnt_root);
|
|
root = ERR_CAST(mnt_root);
|
|
|
|
|
+ kfree(subvol_name);
|
|
|
goto out;
|
|
goto out;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -1686,12 +1687,14 @@ static struct dentry *btrfs_mount(struct file_system_type *fs_type, int flags,
|
|
|
if (error < 0) {
|
|
if (error < 0) {
|
|
|
root = ERR_PTR(error);
|
|
root = ERR_PTR(error);
|
|
|
mntput(mnt_root);
|
|
mntput(mnt_root);
|
|
|
|
|
+ kfree(subvol_name);
|
|
|
goto out;
|
|
goto out;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
if (IS_ERR(mnt_root)) {
|
|
if (IS_ERR(mnt_root)) {
|
|
|
root = ERR_CAST(mnt_root);
|
|
root = ERR_CAST(mnt_root);
|
|
|
|
|
+ kfree(subvol_name);
|
|
|
goto out;
|
|
goto out;
|
|
|
}
|
|
}
|
|
|
|
|
|