Re: [PATCH] media: cx231xx: fix devres lifetime
From: Greg KH
Date: Fri Mar 27 2026 - 07:11:14 EST
On Fri, Mar 27, 2026 at 11:43:55AM +0100, 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.
Wow, I bet we have a lot of these now, did you find this with a script
or something that you can run over the whole tree?
thanks,
greg k-h