Re: [PATCH v2] media: cx231xx: fix devres lifetime

From: Johan Hovold

Date: Thu Apr 30 2026 - 04:47:35 EST


On Mon, Mar 30, 2026 at 11:37:27AM +0200, Johan Hovold wrote:
> USB drivers bind to USB interfaces and any device managed resources
> should have their lifetime tied to the interface rather than parent USB
> device. This avoids issues like memory leaks when drivers are unbound
> without their devices being physically disconnected (e.g. on probe
> deferral or configuration changes).
>
> Fix the driver state lifetime so that it is released on driver unbind.
>
> Fixes: 184a82784d50 ("[media] cx231xx: use devm_ functions to allocate memory")
> Cc: stable@xxxxxxxxxxxxxxx # 3.17
> Signed-off-by: Johan Hovold <johan@xxxxxxxxxx>
> ---
>
> Changes in v2
> - Drop CC tag for Mauro to make the CI bot happy

Can this one be picked up now?

Johan