Messages in this thread | | | Date | Mon, 17 Dec 2012 11:28:54 -0800 | From | Anton Vorontsov <> | Subject | Re: [PATCH] time: create __getnstimeofday for WARNless calls |
| |
On Mon, Dec 17, 2012 at 01:51:54PM -0500, John Stultz wrote: > From: Kees Cook <keescook@chromium.org> > > Hey Thomas, > Wanted to see if maybe there was still time for this for 3.8? > thanks > -john > > The pstore RAM backend can get called during resume, and must be defensive > against a suspended time source. Expose getnstimeofday logic that returns > an error instead of a WARN. This can be detected and the timestamp can > be zeroed out. > > Reported-by: Doug Anderson <dianders@chromium.org> > Cc: Anton Vorontsov <anton.vorontsov@linaro.org> > Cc: Thomas Gleixner <tglx@linutronix.de> > Signed-off-by: Kees Cook <keescook@chromium.org> > Signed-off-by: John Stultz <john.stultz@linaro.org> > --- > fs/pstore/ram.c | 10 +++++++---
For pstore/ram part:
Acked-by: Anton Vorontsov <anton.vorontsov@linaro.org>
Thanks!
| |