[lvc-project] [PATCH] btrfs: fix memory leak in btrfs_do_encoded_write()
Breno Leitao
leitao at debian.org
Fri Jul 31 15:13:25 MSK 2026
On Mon, Jul 27, 2026 at 06:01:34PM +0100, Filipe Manana wrote:
> On Mon, Jul 27, 2026 at 12:54 PM Dmitry Antipov <dmantipov at yandex.ru> wrote:
> > Fix this by freeing an extent changeset before returning from
> > 'btrfs_do_encoded_write()'.
> >
> > Signed-off-by: Dmitry Antipov <dmantipov at yandex.ru>
>
> Looks good, thans. I added it to the github for-next branch with the
> addition of:
>
> Fixes: 7c0c7269f7b5 ("btrfs: add BTRFS_IOC_ENCODED_WRITE")
That looks correct from my investigation as well.
I've spent some time on this one, and this fix looks like correct. Feel
free to add:
Reviewed-by: Breno Leitao <leitao at debian.org>
Tested-by: Breno Leitao <leitao at debian.org>
More information about the lvc-project
mailing list