]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ieee802154: atusb: drop redundant device reference
authorJohan Hovold <johan@kernel.org>
Thu, 5 Mar 2026 10:43:13 +0000 (11:43 +0100)
committerJakub Kicinski <kuba@kernel.org>
Tue, 24 Mar 2026 00:35:28 +0000 (17:35 -0700)
commit4e9b1994a105fefe558b245f2076a70cc6b498a9
tree8d1ee0de4c3bf5aa8e0fcccee188676764e5ba04
parentad6b67ffd2e8d53e5c306ce74b6f0d23b430df8a
ieee802154: atusb: drop redundant device reference

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@kernel.org>
Reviewed-by: Miquel Raynal <miquel.raynal@bootlin.com>
Acked-by: Stefan Schmidt <stefan@datenfreihafen.org>
Link: https://patch.msgid.link/20260305104313.15898-1-johan@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ieee802154/atusb.c