diff --git a/fs/btrfs/send.c b/fs/btrfs/send.c index ac0e942e8d7cc2ecaae31bf51f87148aabb638d4..79b7d15ca50f4ed2a4d5e8f0c7844f539cd75257 100644 --- a/fs/btrfs/send.c +++ b/fs/btrfs/send.c @@ -7149,7 +7149,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;