Skip to content

net: fix device reference leaks

Johan Hovold linux-omap lkml netdev 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 3 repliesIn review
  2. v14 patches 4 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4phy: fix device reference leaksdrivers/net/phy/phy_device.c+2 -00 replies
2/4net: ethernet: ti: cpsw: fix device and of_node leaksdrivers/net/ethernet/ti/cpsw-phy-sel.c+3 -02 replies
3/4net: ethernet: ti: davinci_emac: fix device reference leakdrivers/net/ethernet/ti/davinci_emac.c+6 -40 replies
4/4net: hns: fix device reference leaksdrivers/net/ethernet/hisilicon/hns/hnae.c+7 -10 replies

Reviews trailers per patch

1 of 4 patches has a Reviewed-by or Acked-by.

PatchGrygorii Strashko
1/4
2/4R-b
3/4
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH net v2 0/4] net: fix device reference leaks

This series fixes a number of device reference leaks (and one of_node leak) due to failure to drop the references taken by bus_find_device() and friends.

Note that the final two patches have been compile tested only.

Thanks,
Johan

v2
- hold reference to cpsw-phy-sel device while accessing private data as requested by David. Also update the commit message. (patch 1/4)
- add linux-omap on CC where appropriate

Johan Hovold (4):
phy: fix device reference leaks
net: ethernet: ti: cpsw: fix device and of_node leaks
net: ethernet: ti: davinci_emac: fix device reference leak
net: hns: fix device reference leaks

 drivers/net/ethernet/hisilicon/hns/hnae.c |  8 +++++++-
 drivers/net/ethernet/ti/cpsw-phy-sel.c    |  3 +++
 drivers/net/ethernet/ti/davinci_emac.c    | 10 ++++++----
 drivers/net/phy/phy_device.c              |  2 ++
 4 files changed, 18 insertions(+), 5 deletions(-)
Signature · 1 line
2.7.3