[PATCH 0/2] gpib: drop redundant device reference
From: Johan Hovold
Date: Thu Mar 05 2026 - 05:28:23 EST
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.
Johan
Johan Hovold (2):
gpib: agilent_82357a: drop redundant device reference
gpib: ni_usb: drop redundant device reference
drivers/gpib/agilent_82357a/agilent_82357a.c | 5 +----
drivers/gpib/ni_usb/ni_usb_gpib.c | 4 ----
2 files changed, 1 insertion(+), 8 deletions(-)
--
2.52.0