mirror of
https://github.com/dynup/kpatch
synced 2025-02-18 02:37:01 +00:00
Provides integration tests for rhel-8.9 (kernel-4.18.0-513.5.1.el8_9), note that module.test is from the linux-6.2/ directory and not rhel-8.8/ Signed-off-by: Ryan Sullivan <rysulliv@redhat.com>
14 lines
425 B
Diff
14 lines
425 B
Diff
diff -Nupr src.orig/kernel/time/timekeeping.c src/kernel/time/timekeeping.c
|
|
--- src.orig/kernel/time/timekeeping.c 2023-05-18 13:26:13.459170615 -0400
|
|
+++ src/kernel/time/timekeeping.c 2023-05-18 13:26:42.511136382 -0400
|
|
@@ -1231,6 +1231,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;
|