Re: [PATCH] media: dvb-bt8xx: Fix potential double-free in frontend_init

From: Tuo Li

Date: Tue Nov 10 2026 - 22:36:18 EST


Hi Markus,

On Tue, Nov 10, 2026 at 8:22 PM Markus Elfring <Markus.Elfring@xxxxxx> wrote:
>
> …
> > Remove the redundant kfree() calls from dst_attach() to avoid
> > double-freeing the state on failure paths. This keeps ownership with the
> > caller until a successful attachment transfers it to the frontend.
>
> How do you think about to add any tags (like “Fixes” and “Cc”) accordingly?
> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/submitting-patches.rst?h=v7.4-rc2#n145
> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/stable-kernel-rules.rst?h=v7.4-rc2#n34
>
>
> Would the specification “dst_attach()” be more appropriate in the summary phrase
> instead of “frontend_init”?
> https://elixir.bootlin.com/linux/v7.3.1/source/drivers/media/pci/bt8xx/dst.c#L1693-L1723
>

Thanks for your suggestions. I will update the patch accordingly and send a
v2 shortly.

Best regards,
Tuo