Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-8]: src/sys/dev/hyperv Pull up following revision(s) (requested b...
details: https://anonhg.NetBSD.org/src/rev/94b26165bd0e
branches: netbsd-8
changeset: 852426:94b26165bd0e
user: martin <martin%NetBSD.org@localhost>
date: Tue Jul 09 15:16:45 2019 +0000
description:
Pull up following revision(s) (requested by nakayama in ticket #1286):
sys/dev/hyperv/vmbus.c: revision 1.4
Zero clear the allocated ring buffer for vmbus_channel.
This change makes Hyper-V's vmbus devices work properly even after reboot.
diffstat:
sys/dev/hyperv/vmbus.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r d39739dd4a75 -r 94b26165bd0e sys/dev/hyperv/vmbus.c
--- a/sys/dev/hyperv/vmbus.c Mon Jul 08 16:31:54 2019 +0000
+++ b/sys/dev/hyperv/vmbus.c Tue Jul 09 15:16:45 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vmbus.c,v 1.2.2.3 2019/06/12 10:17:32 martin Exp $ */
+/* $NetBSD: vmbus.c,v 1.2.2.4 2019/07/09 15:16:45 martin Exp $ */
/* $OpenBSD: hyperv.c,v 1.43 2017/06/27 13:56:15 mikeb Exp $ */
/*-
@@ -35,7 +35,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vmbus.c,v 1.2.2.3 2019/06/12 10:17:32 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vmbus.c,v 1.2.2.4 2019/07/09 15:16:45 martin Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -1263,6 +1263,7 @@
"failed to allocate channel ring\n");
return ENOMEM;
}
+ memset(ch->ch_ring, 0, ch->ch_ring_size);
memset(&ch->ch_wrd, 0, sizeof(ch->ch_wrd));
ch->ch_wrd.rd_ring = (struct vmbus_bufring *)ch->ch_ring;
Home |
Main Index |
Thread Index |
Old Index