Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci wm_tick: Add missing splx(s) when not WM_MPSAFE



details:   https://anonhg.NetBSD.org/src/rev/e41154fc958f
branches:  trunk
changeset: 368262:e41154fc958f
user:      skrll <skrll%NetBSD.org@localhost>
date:      Sat Jul 02 06:09:37 2022 +0000

description:
wm_tick: Add missing splx(s) when not WM_MPSAFE

diffstat:

 sys/dev/pci/if_wm.c |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (28 lines):

diff -r a669487c7762 -r e41154fc958f sys/dev/pci/if_wm.c
--- a/sys/dev/pci/if_wm.c       Sat Jul 02 05:04:36 2022 +0000
+++ b/sys/dev/pci/if_wm.c       Sat Jul 02 06:09:37 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_wm.c,v 1.733 2022/05/19 02:23:59 msaitoh Exp $      */
+/*     $NetBSD: if_wm.c,v 1.734 2022/07/02 06:09:37 skrll Exp $        */
 
 /*
  * Copyright (c) 2001, 2002, 2003, 2004 Wasabi Systems, Inc.
@@ -82,7 +82,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_wm.c,v 1.733 2022/05/19 02:23:59 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_wm.c,v 1.734 2022/07/02 06:09:37 skrll Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_net_mpsafe.h"
@@ -3490,6 +3490,9 @@
                wm_tbi_tick(sc);
 
        WM_CORE_UNLOCK(sc);
+#ifndef WM_MPSAFE
+       splx(s);
+#endif
 
        wm_watchdog(ifp);
 



Home | Main Index | Thread Index | Old Index