Module Name:    src
Committed By:   nonaka
Date:           Wed Feb  1 02:37:43 UTC 2017

Modified Files:
        src/sys/dev/ic: wi.c

Log Message:
Added missing splx(s).


To generate a diff of this commit:
cvs rdiff -u -r1.240 -r1.241 src/sys/dev/ic/wi.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/dev/ic/wi.c
diff -u src/sys/dev/ic/wi.c:1.240 src/sys/dev/ic/wi.c:1.241
--- src/sys/dev/ic/wi.c:1.240	Fri Jun 10 13:27:14 2016
+++ src/sys/dev/ic/wi.c	Wed Feb  1 02:37:43 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: wi.c,v 1.240 2016/06/10 13:27:14 ozaki-r Exp $	*/
+/*	$NetBSD: wi.c,v 1.241 2017/02/01 02:37:43 nonaka Exp $	*/
 
 /*-
  * Copyright (c) 2004 The NetBSD Foundation, Inc.
@@ -99,7 +99,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: wi.c,v 1.240 2016/06/10 13:27:14 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: wi.c,v 1.241 2017/02/01 02:37:43 nonaka Exp $");
 
 #define WI_HERMES_AUTOINC_WAR	/* Work around data write autoinc bug. */
 #define WI_HERMES_STATS_WAR	/* Work around stats counter bug. */
@@ -1366,8 +1366,10 @@ wi_ioctl(struct ifnet *ifp, u_long cmd, 
 
 	s = splnet();
 
-	if ((error = wi_ioctl_enter(sc)) != 0)
+	if ((error = wi_ioctl_enter(sc)) != 0) {
+		splx(s);
 		return error;
+	}
 
 	switch (cmd) {
 	case SIOCSIFFLAGS:

Reply via email to