Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/x86/pci Fix missing splnet() for ether_ioctl() caus...
details: https://anonhg.NetBSD.org/src/rev/77304478bfcd
branches: trunk
changeset: 967859:77304478bfcd
user: knakahara <knakahara%NetBSD.org@localhost>
date: Tue Dec 24 10:21:08 2019 +0000
description:
Fix missing splnet() for ether_ioctl() caused by if_vmx.c:r1.32.
pointed out by nonaka@n.o, thanks.
diffstat:
sys/arch/x86/pci/if_vmx.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (28 lines):
diff -r ecaf4c320140 -r 77304478bfcd sys/arch/x86/pci/if_vmx.c
--- a/sys/arch/x86/pci/if_vmx.c Tue Dec 24 09:12:56 2019 +0000
+++ b/sys/arch/x86/pci/if_vmx.c Tue Dec 24 10:21:08 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_vmx.c,v 1.52 2019/11/27 19:21:36 maxv Exp $ */
+/* $NetBSD: if_vmx.c,v 1.53 2019/12/24 10:21:08 knakahara Exp $ */
/* $OpenBSD: if_vmx.c,v 1.16 2014/01/22 06:04:17 brad Exp $ */
/*
@@ -19,7 +19,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_vmx.c,v 1.52 2019/11/27 19:21:36 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_vmx.c,v 1.53 2019/12/24 10:21:08 knakahara Exp $");
#include <sys/param.h>
#include <sys/cpu.h>
@@ -3378,7 +3378,9 @@
break;
}
if (ifp->if_mtu != nmtu) {
+ s = splnet();
error = ether_ioctl(ifp, cmd, data);
+ splx(s);
if (error == ENETRESET)
error = vmxnet3_init(ifp);
}
Home |
Main Index |
Thread Index |
Old Index