]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - kernel/time.c
[PATCH] powerpc/PCI hotplug: merge rpaphp_enable_pci_slot()
[linux-2.6-omap-h63xx.git] / kernel / time.c
index 7477b1d2079e32a614ea82e6ae21fde3abe48373..1f23e683d6aa01da497a86a8cd5ac6804ef5d6fe 100644 (file)
@@ -155,7 +155,7 @@ int do_sys_settimeofday(struct timespec *tv, struct timezone *tz)
        static int firsttime = 1;
        int error = 0;
 
-       if (!timespec_valid(tv))
+       if (tv && !timespec_valid(tv))
                return -EINVAL;
 
        error = security_settime(tv, tz);