]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
USB: ljca: drop redundant interface reference
authorJohan Hovold <johan@kernel.org>
Thu, 5 Mar 2026 11:15:09 +0000 (12:15 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 11 Mar 2026 14:14:35 +0000 (15:14 +0100)
commit9970f8388642410354d6e4e783c655a50fba8ca6
treec91f48446b88819f97e3ad4ded3e7e281721c984
parentbb49af3c56a60af57abdd5e6c753da87d30306fe
USB: ljca: drop redundant interface reference

Driver core holds a reference to the USB interface while it is bound to
a driver and there is no need to take another reference unless the
interface is needed after disconnect.

Drop the redundant interface 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>
Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Link: https://patch.msgid.link/20260305111511.18386-4-johan@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/misc/usb-ljca.c