]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
USB: trancevibrator: drop redundant device reference
authorJohan Hovold <johan@kernel.org>
Thu, 5 Mar 2026 11:15:10 +0000 (12:15 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 11 Mar 2026 14:14:35 +0000 (15:14 +0100)
commit58221c728d087ece9671d4d9f6fd0a321531d2de
tree14f4aa30790c977ed9e40b1bc03c3a3ba666d14d
parent9970f8388642410354d6e4e783c655a50fba8ca6
USB: trancevibrator: 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>
Link: https://patch.msgid.link/20260305111511.18386-5-johan@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/misc/trancevibrator.c