mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/2] gpib: drop redundant device reference
@ 2026-03-05 10:27 Johan Hovold
  2026-03-05 10:27 ` [PATCH 1/2] gpib: agilent_82357a: " Johan Hovold
  2026-03-05 10:27 ` [PATCH 2/2] gpib: ni_usb: " Johan Hovold
  0 siblings, 2 replies; 3+ messages in thread
From: Johan Hovold @ 2026-03-05 10:27 UTC (permalink / raw)
  To: Dave Penkler; +Cc: Greg Kroah-Hartman, linux-kernel, Johan Hovold

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-03-05 10:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-03-05 10:27 [PATCH 0/2] gpib: drop redundant device reference Johan Hovold
2026-03-05 10:27 ` [PATCH 1/2] gpib: agilent_82357a: " Johan Hovold
2026-03-05 10:27 ` [PATCH 2/2] gpib: ni_usb: " Johan Hovold

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome