public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/5] USB: drop redundant references
@ 2026-03-05 11:15 Johan Hovold
  2026-03-05 11:15 ` [PATCH 1/5] USB: cypress_cy7c63: drop redundant device reference Johan Hovold
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: Johan Hovold @ 2026-03-05 11:15 UTC (permalink / raw)
  To: Greg Kroah-Hartman
  Cc: Lixu Zhang, Sakari Ailus, linux-usb, 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 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 (5):
  USB: cypress_cy7c63: drop redundant device reference
  USB: cytherm: drop redundant device reference
  USB: ljca: drop redundant interface reference
  USB: trancevibrator: drop redundant device reference
  USB: usbsevseg: drop redundant device reference

 drivers/usb/misc/cypress_cy7c63.c |  4 +---
 drivers/usb/misc/cytherm.c        |  4 +---
 drivers/usb/misc/trancevibrator.c |  3 +--
 drivers/usb/misc/usb-ljca.c       | 15 +++++----------
 drivers/usb/misc/usbsevseg.c      |  3 +--
 5 files changed, 9 insertions(+), 20 deletions(-)

-- 
2.52.0


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

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

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-05 11:15 [PATCH 0/5] USB: drop redundant references Johan Hovold
2026-03-05 11:15 ` [PATCH 1/5] USB: cypress_cy7c63: drop redundant device reference Johan Hovold
2026-03-05 11:15 ` [PATCH 2/5] USB: cytherm: " Johan Hovold
2026-03-05 11:15 ` [PATCH 3/5] USB: ljca: drop redundant interface reference Johan Hovold
2026-03-05 13:18   ` Sakari Ailus
2026-03-05 11:15 ` [PATCH 4/5] USB: trancevibrator: drop redundant device reference Johan Hovold
2026-03-05 11:15 ` [PATCH 5/5] USB: usbsevseg: " Johan Hovold

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