Skip to content

gpib: drop redundant device reference

Johan Hovold lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2gpib: agilent_82357a: drop redundant device referencedrivers/gpib/agilent_82357a/agilent_82357a.c+1 -40 replies
2/2gpib: ni_usb: drop redundant device referencedrivers/gpib/ni_usb/ni_usb_gpib.c+0 -40 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] gpib: 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.

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(-)
Signature · 1 line
2.52.0