media: drop redundant device references
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest4 patches 1 replyIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | media: imon: drop redundant device referencesdrivers/ | +3 | 0 replies | |
| 2/4 | media: mceusb: drop redundant device referencedrivers/ | +1 | 0 replies | |
| 3/4 | media: go7007-loader: drop redundant device referencedrivers/ | +1 | 0 replies | |
| 4/4 | media: usbtv: drop redundant device referencedrivers/ | +1 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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