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/f61c819b4209
branches:  trunk
changeset: 966019:f61c819b4209
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 53b0959c3d7d -r f61c819b4209 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