Skip to content

media: drop redundant device references

Johan Hovold linux-media lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4media: imon: drop redundant device referencesdrivers/media/rc/imon.c+3 -100 replies
2/4media: mceusb: drop redundant device referencedrivers/media/rc/mceusb.c+1 -30 replies
3/4media: go7007-loader: drop redundant device referencedrivers/media/usb/go7007/go7007-loader.c+1 -50 replies
4/4media: usbtv: drop redundant device referencedrivers/media/usb/usbtv/usbtv-core.c+1 -30 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/4] media: drop redundant device references

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 extra references are needed, and reduce the risk of memory leaks when drivers fail to release them.

Johan

Johan Hovold (4):
media: imon: drop redundant device references
media: mceusb: drop redundant device reference
media: go7007-loader: drop redundant device reference
media: usbtv: drop redundant device reference

 drivers/media/rc/imon.c                  | 13 +++----------
 drivers/media/rc/mceusb.c                |  4 +---
 drivers/media/usb/go7007/go7007-loader.c |  6 +-----
 drivers/media/usb/usbtv/usbtv-core.c     |  4 +---
 4 files changed, 6 insertions(+), 21 deletions(-)
Signature · 1 line
2.52.0