]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - fs/btrfs/super.c
btrfs: use kvzalloc to allocate btrfs_fs_info
[mirror_ubuntu-bionic-kernel.git] / fs / btrfs / super.c
index 3a4dce1536455416a4f609f99ec416b61811f592..8da44c9e8e19341356cfa50d497084e6c8fb1dcd 100644 (file)
@@ -1608,7 +1608,7 @@ static struct dentry *btrfs_mount(struct file_system_type *fs_type, int flags,
         * it for searching for existing supers, so this lets us do that and
         * 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) {
                error = -ENOMEM;
                goto error_sec_opts;