Module Name: src Committed By: martin Date: Sun Oct 13 14:45:13 UTC 2024
Modified Files: src/sys/arch/xen/xen [netbsd-9]: clock.c Log Message: Pull up following revision(s) (requested by riastradh in ticket #1904): sys/arch/xen/xen/xen_clock.c: revision 1.19 (patch) (applied to ..../clock.c) xen_rtc_set: Zero-initialize op before passing to hypervisor. PR port-xen/58362 To generate a diff of this commit: cvs rdiff -u -r1.78.4.1 -r1.78.4.2 src/sys/arch/xen/xen/clock.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/xen/xen/clock.c diff -u src/sys/arch/xen/xen/clock.c:1.78.4.1 src/sys/arch/xen/xen/clock.c:1.78.4.2 --- src/sys/arch/xen/xen/clock.c:1.78.4.1 Thu Jul 27 16:55:41 2023 +++ src/sys/arch/xen/xen/clock.c Sun Oct 13 14:45:13 2024 @@ -1,4 +1,4 @@ -/* $NetBSD: clock.c,v 1.78.4.1 2023/07/27 16:55:41 martin Exp $ */ +/* $NetBSD: clock.c,v 1.78.4.2 2024/10/13 14:45:13 martin Exp $ */ /*- * Copyright (c) 2017, 2018 The NetBSD Foundation, Inc. @@ -36,7 +36,7 @@ #endif #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: clock.c,v 1.78.4.1 2023/07/27 16:55:41 martin Exp $"); +__KERNEL_RCSID(0, "$NetBSD: clock.c,v 1.78.4.2 2024/10/13 14:45:13 martin Exp $"); #include <sys/param.h> #include <sys/types.h> @@ -614,6 +614,7 @@ xen_rtc_set(struct todr_chip_handle *tod systime_ns = xen_global_systime_ns(); /* Set the hypervisor wall clock time. */ + memset(&op, 0, sizeof(op)); op.cmd = XENPF_settime; op.u.settime.secs = tvp->tv_sec; op.u.settime.nsecs = tvp->tv_usec * 1000;