Re: [PATCH] ptp: add range check on n_samples

2013-09-24 Thread Richard Cochran
On Tue, Sep 24, 2013 at 03:05:57PM +0800, Dong Zhu wrote: > From d4eb97e8d5def76d46167c91059147e2c7d33433 Mon Sep 17 00:00:00 2001 > > When using PTP_SYS_OFFSET ioctl to measure the time offset between the > PHC and system clock, we need to specify the number of measurements, the > valid value of

[PATCH] ptp: add range check on n_samples

2013-09-24 Thread Dong Zhu
>From d4eb97e8d5def76d46167c91059147e2c7d33433 Mon Sep 17 00:00:00 2001 When using PTP_SYS_OFFSET ioctl to measure the time offset between the PHC and system clock, we need to specify the number of measurements, the valid value of n_samples is between 1 to 25. If n_samples <= 0 or > 25 it makes

[PATCH] ptp: add range check on n_samples

2013-09-24 Thread Dong Zhu
From d4eb97e8d5def76d46167c91059147e2c7d33433 Mon Sep 17 00:00:00 2001 When using PTP_SYS_OFFSET ioctl to measure the time offset between the PHC and system clock, we need to specify the number of measurements, the valid value of n_samples is between 1 to 25. If n_samples = 0 or 25 it makes no

Re: [PATCH] ptp: add range check on n_samples

2013-09-24 Thread Richard Cochran
On Tue, Sep 24, 2013 at 03:05:57PM +0800, Dong Zhu wrote: From d4eb97e8d5def76d46167c91059147e2c7d33433 Mon Sep 17 00:00:00 2001 When using PTP_SYS_OFFSET ioctl to measure the time offset between the PHC and system clock, we need to specify the number of measurements, the valid value of