mirror of
https://github.com/dynup/kpatch
synced 2025-02-02 10:11:36 +00:00
11ce8102c2
Kernel version: 3.10.0-327.36.3.el7.x86_64
14 lines
423 B
Diff
14 lines
423 B
Diff
diff -Nupr src.orig/kernel/time/timekeeping.c src/kernel/time/timekeeping.c
|
|
--- src.orig/kernel/time/timekeeping.c 2016-11-30 19:51:04.308178250 +0000
|
|
+++ src/kernel/time/timekeeping.c 2016-11-30 19:51:18.583178250 +0000
|
|
@@ -521,6 +521,9 @@ void do_gettimeofday(struct timeval *tv)
|
|
{
|
|
struct timespec64 now;
|
|
|
|
+ if (!tv)
|
|
+ return;
|
|
+
|
|
getnstimeofday64(&now);
|
|
tv->tv_sec = now.tv_sec;
|
|
tv->tv_usec = now.tv_nsec/1000;
|