]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
Merge branch 'nfc-drop-redundant-usb-device-references'
authorJakub Kicinski <kuba@kernel.org>
Sat, 7 Mar 2026 02:57:46 +0000 (18:57 -0800)
committerJakub Kicinski <kuba@kernel.org>
Sat, 7 Mar 2026 02:57:47 +0000 (18:57 -0800)
Johan Hovold says:

====================
nfc: drop redundant USB device references

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 redundant device references 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 them.
====================

Link: https://patch.msgid.link/20260305111019.18030-1-johan@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

Trivial merge