Module Name: src
Committed By: ozaki-r
Date: Tue Mar 7 01:32:03 UTC 2017
Modified Files:
src/sys/net: if.c
Log Message:
Add missing splnet to if_deferred_start_common
if_start should run in splnet to avoid running interrupt handlers.
To generate a diff of this commit:
cvs rdiff -u -r1.381 -r1.382 src/sys/net/if.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/net/if.c
diff -u src/sys/net/if.c:1.381 src/sys/net/if.c:1.382
--- src/sys/net/if.c:1.381 Thu Feb 23 07:57:10 2017
+++ src/sys/net/if.c Tue Mar 7 01:32:03 2017
@@ -1,4 +1,4 @@
-/* $NetBSD: if.c,v 1.381 2017/02/23 07:57:10 ozaki-r Exp $ */
+/* $NetBSD: if.c,v 1.382 2017/03/07 01:32:03 ozaki-r Exp $ */
/*-
* Copyright (c) 1999, 2000, 2001, 2008 The NetBSD Foundation, Inc.
@@ -90,7 +90,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if.c,v 1.381 2017/02/23 07:57:10 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if.c,v 1.382 2017/03/07 01:32:03 ozaki-r Exp $");
#if defined(_KERNEL_OPT)
#include "opt_inet.h"
@@ -1008,8 +1008,11 @@ if_deferred_start_softint(void *arg)
static void
if_deferred_start_common(struct ifnet *ifp)
{
+ int s;
+ s = splnet();
if_start_lock(ifp);
+ splx(s);
}
static inline bool