diff options
| author | Sagi Maimon <[email protected]> | 2025-04-15 05:31:31 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2025-04-17 01:23:57 +0000 |
| commit | 2a5970d5aaff8f3e33ce3bfaa403ae88c40de40d (patch) | |
| tree | da32830a220d2d3388e1fc53744bff6cfb79e28a /net/core/dev.c | |
| parent | Merge branch 'collection-of-dsa-bug-fixes' (diff) | |
| download | kernel-2a5970d5aaff8f3e33ce3bfaa403ae88c40de40d.tar.gz kernel-2a5970d5aaff8f3e33ce3bfaa403ae88c40de40d.zip | |
ptp: ocp: fix start time alignment in ptp_ocp_signal_set
In ptp_ocp_signal_set, the start time for periodic signals is not
aligned to the next period boundary. The current code rounds up the
start time and divides by the period but fails to multiply back by
the period, causing misaligned signal starts. Fix this by multiplying
the rounded-up value by the period to ensure the start time is the
closest next period.
Fixes: 4bd46bb037f8e ("ptp: ocp: Use DIV64_U64_ROUND_UP for rounding.")
Signed-off-by: Sagi Maimon <[email protected]>
Reviewed-by: Vadim Fedorenko <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'net/core/dev.c')
0 files changed, 0 insertions, 0 deletions
