public inbox for netdev@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] nfc: drop redundant USB device references
@ 2026-03-05 11:10 Johan Hovold
  2026-03-05 11:10 ` [PATCH 1/2] nfc: pn533: drop redundant device reference Johan Hovold
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Johan Hovold @ 2026-03-05 11:10 UTC (permalink / raw)
  To: Jakub Kicinski, netdev; +Cc: 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 redundant device references 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 them.

Johan


Johan Hovold (2):
  nfc: pn533: drop redundant device reference
  nfc: port100: drop redundant device reference

 drivers/nfc/pn533/usb.c | 4 +---
 drivers/nfc/port100.c   | 4 +---
 2 files changed, 2 insertions(+), 6 deletions(-)

-- 
2.52.0


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

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

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-05 11:10 [PATCH 0/2] nfc: drop redundant USB device references Johan Hovold
2026-03-05 11:10 ` [PATCH 1/2] nfc: pn533: drop redundant device reference Johan Hovold
2026-03-05 11:10 ` [PATCH 2/2] nfc: port100: " Johan Hovold
2026-03-07  3:10 ` [PATCH 0/2] nfc: drop redundant USB device references patchwork-bot+netdevbpf

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