diff --git a/fs/btrfs/send.c b/fs/btrfs/send.c index d2bfbd070a751e860a99d1a1a9b5d407d3c42dbd..29dbdac1c93ac464e27a1e38113e5d9389c5f8ea 100644 --- a/fs/btrfs/send.c +++ b/fs/btrfs/send.c @@ -6859,7 +6859,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;