Re: [PATCH] btrfs: fix memory leak in btrfs_do_encoded_write()
Breno Leitao <[email protected]> Fri, 31 Jul 2026 05:13:25 -0700
| Newsgroups | org.kernel.vger.linux-btrfs |
|---|---|
| Message-ID | <[email protected]> |
On Mon, Jul 27, 2026 at 06:01:34PM +0100, Filipe Manana wrote: > On Mon, Jul 27, 2026 at 12:54 PM Dmitry Antipov <[email protected]> wrote: > > Fix this by freeing an extent changeset before returning from > > 'btrfs_do_encoded_write()'. > > > > Signed-off-by: Dmitry Antipov <[email protected]> > > 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 <[email protected]> Tested-by: Breno Leitao <[email protected]>