RE: [PATCH] timekeeping: check params before use them

2014-03-27 Thread Neil Zhang
> -Original Message- > From: John Stultz [mailto:john.stu...@linaro.org] > Sent: 2014年3月28日 1:26 > To: Neil Zhang; t...@linutronix.de > Cc: linux-kernel@vger.kernel.org > Subject: Re: [PATCH] timekeeping: check params before use them > > On 03/27/2014 01

Re: [PATCH] timekeeping: check params before use them

2014-03-27 Thread John Stultz
On 03/27/2014 01:12 AM, Neil Zhang wrote: > Sometimes we won't need all the information from > get_xtime_and_monotonic_and_sleep_offset(), > so let's check the params before assign the value to them. So I think the single in-kernel user of this function does use all of the information. Can you ex

[PATCH] timekeeping: check params before use them

2014-03-27 Thread Neil Zhang
Sometimes we won't need all the information from get_xtime_and_monotonic_and_sleep_offset(), so let's check the params before assign the value to them. Signed-off-by: Neil Zhang --- kernel/time/timekeeping.c |9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/kernel/t