Re: [PATCH -next v4 1/2] posix-clock: Check timespec64 before call clock_settime()
From: Simon Horman
Date: Sat Sep 14 2024 - 11:23:34 EST
On Sat, Sep 14, 2024 at 06:06:24PM +0800, Jinjie Ruan wrote:
> As Andrew pointed out, it will make sense that the PTP core
> checked timespec64 struct's tv_sec and tv_nsec range before calling
> ptp->info->settime64().
>
> As the man mannul of clock_settime() said, if tp.tv_sec is negative or
> tp.tv_nsec is outside the range [0..999,999,999], it shuld return EINVAL,
nit: should
Flagged by checkpatch.pl --codespell
...