Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-8]: src/sys/arch/x86/pci Pull up following revision(s) (requested...



details:   https://anonhg.NetBSD.org/src/rev/3072e087bd54
branches:  netbsd-8
changeset: 466571:3072e087bd54
user:      martin <martin%NetBSD.org@localhost>
date:      Thu Dec 26 20:23:39 2019 +0000

description:
Pull up following revision(s) (requested by knakahara in ticket #1477):

        sys/arch/x86/pci/if_vmx.c: revision 1.53

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 2daa070d23aa -r 3072e087bd54 sys/arch/x86/pci/if_vmx.c
--- a/sys/arch/x86/pci/if_vmx.c Tue Dec 24 17:16:23 2019 +0000
+++ b/sys/arch/x86/pci/if_vmx.c Thu Dec 26 20:23:39 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_vmx.c,v 1.19.6.6 2019/07/22 17:47:16 martin Exp $   */
+/*     $NetBSD: if_vmx.c,v 1.19.6.7 2019/12/26 20:23:39 martin 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.19.6.6 2019/07/22 17:47:16 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_vmx.c,v 1.19.6.7 2019/12/26 20:23:39 martin Exp $");
 
 #include <sys/param.h>
 #include <sys/cpu.h>
@@ -2887,7 +2887,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