[PATCH 04/13] wifi: mwifiex: drop redundant device reference
Francesco Dolcini
francesco at dolcini.it
Fri Mar 6 01:46:07 PST 2026
On Thu, Mar 05, 2026 at 12:07:04PM +0100, Johan Hovold wrote:
> Driver core holds a reference to the USB interface and its parent USB
> device while the interface is bound to a driver and there is no need to
> take additional references unless the structures are needed after
> disconnect.
>
> Drop the redundant device reference to reduce cargo culting, make it
> easier to spot drivers where an extra reference is needed, and reduce
> the risk of memory leaks when drivers fail to release it.
>
> Signed-off-by: Johan Hovold <johan at kernel.org>
Acked-by: Francesco Dolcini <francesco.dolcini at toradex.com>
More information about the libertas-dev
mailing list