Blame test/integration/centos-7/gcc-constprop.patch
|
Packit |
c71e3f |
diff -Nupr src.orig/kernel/time/timekeeping.c src/kernel/time/timekeeping.c
|
|
Packit |
c71e3f |
--- src.orig/kernel/time/timekeeping.c 2017-09-22 15:27:21.602055778 -0400
|
|
Packit |
c71e3f |
+++ src/kernel/time/timekeeping.c 2017-09-22 15:27:27.522080292 -0400
|
|
Packit |
c71e3f |
@@ -877,6 +877,9 @@ void do_gettimeofday(struct timeval *tv)
|
|
Packit |
c71e3f |
{
|
|
Packit |
c71e3f |
struct timespec64 now;
|
|
Packit |
c71e3f |
|
|
Packit |
c71e3f |
+ if (!tv)
|
|
Packit |
c71e3f |
+ return;
|
|
Packit |
c71e3f |
+
|
|
Packit |
c71e3f |
getnstimeofday64(&now;;
|
|
Packit |
c71e3f |
tv->tv_sec = now.tv_sec;
|
|
Packit |
c71e3f |
tv->tv_usec = now.tv_nsec/1000;
|