]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: mdio: mvusb: drop redundant device reference
authorJohan Hovold <johan@kernel.org>
Mon, 9 Mar 2026 08:26:41 +0000 (09:26 +0100)
committerJakub Kicinski <kuba@kernel.org>
Wed, 11 Mar 2026 02:53:19 +0000 (19:53 -0700)
commit1a6ca6497a40f5c7795575a35f0da7d013b79bdd
treecadd1c25b208db59514bc1a4c196d9233493ecb9
parent07f56c8f54118cdbe33d566d9d4cc537c87d9202
net: mdio: mvusb: 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: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20260309082641.15574-1-johan@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/mdio/mdio-mvusb.c