Re: [PATCH] ALSA: us122l: drop redundant interface references

From: Takashi Iwai

Date: Thu Mar 05 2026 - 08:09:33 EST


On Thu, 05 Mar 2026 12:18:10 +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.
>
> Similarly, USB core holds a reference to all interfaces in the active
> configuration so there is no need for a driver to take a reference to a
> sibling interface only to release it at disconnect either.
>
> Drop the redundant references to reduce cargo culting, make it easier to
> spot drivers where extra references are needed, and reduce the risk of
> memory leaks when drivers fail to release them.
>
> Signed-off-by: Johan Hovold <johan@xxxxxxxxxx>

Thanks, applied now.


Takashi