Re: [PATCH 1/2] btrfs: use kvzalloc() to allocate clone_roots in btrfs_ioctl_send()

From: David Sterba
Date: Mon Sep 21 2020 - 14:45:13 EST


On Mon, Sep 21, 2020 at 08:03:35PM +0300, Denis Efremov wrote:
> btrfs_ioctl_send() used open-coded kvzalloc implementation earlier.
> The code was accidentally replaced with kzalloc() call [1]. Restore
> the original code by using kvzalloc() to allocate sctx->clone_roots.
>
> [1] https://patchwork.kernel.org/patch/9757891/#20529627
>
> Cc: stable@xxxxxxxxxxxxxxx
> Fixes: 818e010bf9d0 ("btrfs: replace opencoded kvzalloc with the helper")
> Signed-off-by: Denis Efremov <efremov@xxxxxxxxx>

Thanks, the kvzalloc fixup got lost on the way.