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 kassert failure in vmxnet3_transmit(). ...



details:   https://anonhg.NetBSD.org/src/rev/4fe9bd557ef6
branches:  trunk
changeset: 460162:4fe9bd557ef6
user:      knakahara <knakahara%NetBSD.org@localhost>
date:      Thu Oct 10 08:55:08 2019 +0000

description:
Fix kassert failure in vmxnet3_transmit(). Pointed out by ryo@n.o, thanks.

diffstat:

 sys/arch/x86/pci/if_vmx.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (28 lines):

diff -r 02453e8c916c -r 4fe9bd557ef6 sys/arch/x86/pci/if_vmx.c
--- a/sys/arch/x86/pci/if_vmx.c Thu Oct 10 08:37:16 2019 +0000
+++ b/sys/arch/x86/pci/if_vmx.c Thu Oct 10 08:55:08 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_vmx.c,v 1.50 2019/09/30 07:13:54 knakahara Exp $    */
+/*     $NetBSD: if_vmx.c,v 1.51 2019/10/10 08:55: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.50 2019/09/30 07:13:54 knakahara Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_vmx.c,v 1.51 2019/10/10 08:55:08 knakahara Exp $");
 
 #include <sys/param.h>
 #include <sys/cpu.h>
@@ -3276,7 +3276,9 @@
                vmxnet3_transmit_locked(ifp, txq);
                VMXNET3_TXQ_UNLOCK(txq);
        } else {
+               kpreempt_disable();
                softint_schedule(txq->vxtxq_si);
+               kpreempt_enable();
        }
 
        return 0;



Home | Main Index | Thread Index | Old Index