Re: [PATCH] btrfs: avoid use-after-free when return the error code

From: David Sterba
Date: Wed Nov 23 2022 - 10:41:39 EST


On Wed, Nov 23, 2022 at 10:39:45PM +0800, void0red wrote:
> free_extent_map(em) will free em->map_lookup, so it is
> wrong to use it when return.
>
> Link: https://bugzilla.kernel.org/show_bug.cgi?id=216721
> Signed-off-by: void0red <void0red@xxxxxxxxx>
> Reported-by: eriri <1527030098@xxxxxx>

Added to misc-next with updated changelog, thanks.