Skip to content

ptp: vmclock: bugfixes and cleanups for error handling

Thomas Weißschuh lkml netdev stable 2 versions – Applied

Status from this message: This series was applied to netdev/net.git (main)

Get series with b4
b4 am [email protected] change-id 20250206-vmclock-probe-57cbcb770925

Versions newest first

  1. v2 Latest5 patches 0 repliesApplied 5/5
  2. v14 patches 7 repliesSuperseded

Changes in v2 from the cover letter

- Fix typo in commit message: vmclock_ptp_register()
- Retarget against net tree
- Include patch from David. It's at the start of the series so that all bugfixes are at the beginning and the logical ordering of my patches
is not disrupted.
- Pick up tags from LKML
- Link to v1: https://lore.kernel.org/r/[email protected]

Patches in v2 All 5 applied

#Subject and filesSizeRepliesApplied
1/5ptp: vmclock: Add .owner to vmclock_miscdev_fopsdrivers/ptp/ptp_vmclock.c+1 -00 repliesApplied
2/5ptp: vmclock: Set driver data before its usagedrivers/ptp/ptp_vmclock.c+2 -20 repliesApplied
3/5ptp: vmclock: Don't unregister misc device if it was not registereddrivers/ptp/ptp_vmclock.c+2 -10 repliesApplied
4/5ptp: vmclock: Clean up miscdev and ptp clock through devresdrivers/ptp/ptp_vmclock.c+6 -70 repliesApplied
5/5ptp: vmclock: Remove goto-based cleanup logicdrivers/ptp/ptp_vmclock.c+13 -190 repliesApplied

Reviews trailers per patch

4 of 5 patches have a Reviewed-by or Acked-by.

PatchMateusz PolchlopekRichard CochranDavid Woodhouse
1/5
2/5R-b A-b R-b
3/5A-b R-b
4/5A-b R-b
5/5A-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v2 thread

Cover letter [PATCH net v2 0/5] ptp: vmclock: bugfixes and cleanups for error handling

Some error handling issues I noticed while looking at the code.

Only compile-tested.

---
Changes in v2:
- Fix typo in commit message: vmclock_ptp_register()
- Retarget against net tree
- Include patch from David. It's at the start of the series so that all bugfixes are at the beginning and the logical ordering of my patches
is not disrupted.
- Pick up tags from LKML
- Link to v1: https://lore.kernel.org/r/[email protected]

---
David Woodhouse (1):
ptp: vmclock: Add .owner to vmclock_miscdev_fops

Thomas Weißschuh (4):
ptp: vmclock: Set driver data before its usage
ptp: vmclock: Don't unregister misc device if it was not registered
ptp: vmclock: Clean up miscdev and ptp clock through devres
ptp: vmclock: Remove goto-based cleanup logic

 drivers/ptp/ptp_vmclock.c | 47 +++++++++++++++++++++--------------------------
 1 file changed, 21 insertions(+), 26 deletions(-)

---
base-commit: 2014c95afecee3e76ca4a56956a936e23283f05b
change-id: 20250206-vmclock-probe-57cbcb770925

Best regards,

Signature · 1 line
Thomas Weißschuh <[email protected]>