From: Michael Halcrow Handle NULL values of `tv'. Signed-off-by: Michael Halcrow Signed-off-by: Andrew Morton --- security/seclvl.c | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-) diff -puN security/seclvl.c~seclvl_settime-fix security/seclvl.c --- devel/security/seclvl.c~seclvl_settime-fix 2006-01-23 16:20:07.000000000 -0800 +++ devel-akpm/security/seclvl.c 2006-01-23 16:20:07.000000000 -0800 @@ -369,7 +369,7 @@ static int seclvl_capable(struct task_st static int seclvl_settime(struct timespec *tv, struct timezone *tz) { struct timespec now; - if (seclvl > 1) { + if ((seclvl > 1) && tv) { now = current_kernel_time(); if (tv->tv_sec < now.tv_sec || (tv->tv_sec == now.tv_sec && tv->tv_nsec < now.tv_nsec)) { _