Re: [PATCH] media: venus: venc: avoid double free on video register failure
From: Guangshuo Li
Date: Wed May 20 2026 - 04:32:09 EST
Hi Hans,
On Wed, 20 May 2026 at 14:10, Hans Verkuil <hverkuil+cisco@xxxxxxxxxx> wrote:
>
>
> In patchwork I'm rejecting all your patches that change drivers to 'fix' this.
>
Thanks for the clarification, and thanks for rejecting those driver-specific
patches in patchwork.
> I'm looking forward to a patch fixing it properly in v4l2-dev.c.
>
> It's a real issue, but this shouldn't be done in drivers.
>
I agree that this should be fixed properly in v4l2-dev.c instead. I will
look into the __video_register_device() error path and try to prepare a
proper core fix.
Thanks,
Guangshuo