Re: [PATCH -next] btrfs: Fix return value while kcalloc fails in btrfs_rmap_block

From: David Sterba
Date: Wed Jan 15 2020 - 11:06:11 EST


On Wed, Jan 15, 2020 at 10:20:27PM +0800, YueHaibing wrote:
> In btrfs_rmap_block(), if kcalloc fails, it should return
> -ENOMEM instead of 0.
>
> Fixes: 767f58cdaf20 ("btrfs: Refactor btrfs_rmap_block to improve readability")
> Signed-off-by: YueHaibing <yuehaibing@xxxxxxxxxx>

Thanks, folded to the patch.