Re: [PATCH 1/2] media: cedrus: Fix missing cleanup in error path
From: Dan Carpenter
Date: Thu Apr 02 2026 - 09:23:33 EST
On Wed, Apr 01, 2026 at 10:14:40PM +0300, Andrey Skvortsov wrote:
> From: Samuel Holland <samuel@xxxxxxxxxxxx>
>
> From: Samuel Holland <samuel@xxxxxxxxxxxx>
>
> According to the documentation struct v4l2_fh has to be cleaned up with
> v4l2_fh_exit() before being freed. [1]
>
> 1. https://docs.kernel.org/driver-api/media/v4l2-fh.html
>
I wish the commit message would say what the use visible effect of the
bug is. I looked at it and I don't think this patch hurts but I also
didn't necessarily see a that the original code had a user visible bug.
I read the documentation but it wasn't as unambiguous as I'd prefer.
But I'm not a subsystem expert.
regards,
dan carpenter