|
@@ -1545,7 +1545,7 @@ static struct dentry *btrfs_mount_root(struct file_system_type *fs_type,
|
|
* it for searching for existing supers, so this lets us do that and
|
|
* it for searching for existing supers, so this lets us do that and
|
|
* then open_ctree will properly initialize everything later.
|
|
* then open_ctree will properly initialize everything later.
|
|
*/
|
|
*/
|
|
- fs_info = kzalloc(sizeof(struct btrfs_fs_info), GFP_KERNEL);
|
|
|
|
|
|
+ fs_info = kvzalloc(sizeof(struct btrfs_fs_info), GFP_KERNEL);
|
|
if (!fs_info) {
|
|
if (!fs_info) {
|
|
error = -ENOMEM;
|
|
error = -ENOMEM;
|
|
goto error_sec_opts;
|
|
goto error_sec_opts;
|