mbox series

[-next,v4,0/2] posix-clock: Check timespec64 for PTP clock

Message ID 20240914100625.414013-1-ruanjinjie@huawei.com (mailing list archive)
Headers show
Series posix-clock: Check timespec64 for PTP clock | expand

Message

Jinjie Ruan Sept. 14, 2024, 10:06 a.m. UTC
Check timespec64 in pc_clock_settime() for PTP clock.

Changes in v4:
- Check it in pc_clock_settime() for PTP clock.
- Update the commit message.

Changes in v3:
- Check it before call clock_set().
- Update the commit message.

Jinjie Ruan (2):
  posix-clock: Check timespec64 before call clock_settime()
  net: lan743x: Remove duplicate check

 drivers/net/ethernet/microchip/lan743x_ptp.c | 35 ++++++++------------
 kernel/time/posix-clock.c                    |  3 ++
 2 files changed, 17 insertions(+), 21 deletions(-)