Re: [PATCH v2 16/18] wifi: rtl818x: drop redundant device reference
From: Ping-Ke Shih
Date: Mon Mar 16 2026 - 02:06:03 EST
Johan Hovold <johan@xxxxxxxxxx> 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@xxxxxxxxxx>
3 patch(es) applied to rtw-next branch of rtw.git, thanks.
68e7d359a5ee wifi: rtl818x: drop redundant device reference
711b8add3929 wifi: rtl8xxxu: drop redundant device reference
bbb15e71156c wifi: rtw88: fix device leak on probe failure
---
https://github.com/pkshih/rtw.git