diff --git a/fs/btrfs/send.c b/fs/btrfs/send.c index b0945b9c6df88..e357f23fb54ad 100644 --- a/fs/btrfs/send.c +++ b/fs/btrfs/send.c @@ -7300,7 +7300,7 @@ long btrfs_ioctl_send(struct file *mnt_file, struct btrfs_ioctl_send_args *arg) alloc_size = sizeof(struct clone_root) * (arg->clone_sources_count + 1); - sctx->clone_roots = kzalloc(alloc_size, GFP_KERNEL); + sctx->clone_roots = kvzalloc(alloc_size, GFP_KERNEL); if (!sctx->clone_roots) { ret = -ENOMEM; goto out;