Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/ic Added missing splx(s).
details: https://anonhg.NetBSD.org/src/rev/1cbad1344a48
branches: trunk
changeset: 351052:1cbad1344a48
user: nonaka <nonaka%NetBSD.org@localhost>
date: Wed Feb 01 02:37:43 2017 +0000
description:
Added missing splx(s).
diffstat:
sys/dev/ic/wi.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diffs (30 lines):
diff -r b4bba5bc26d0 -r 1cbad1344a48 sys/dev/ic/wi.c
--- a/sys/dev/ic/wi.c Wed Feb 01 01:51:07 2017 +0000
+++ b/sys/dev/ic/wi.c Wed Feb 01 02:37:43 2017 +0000
@@ -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 @@
s = splnet();
- if ((error = wi_ioctl_enter(sc)) != 0)
+ if ((error = wi_ioctl_enter(sc)) != 0) {
+ splx(s);
return error;
+ }
switch (cmd) {
case SIOCSIFFLAGS:
Home |
Main Index |
Thread Index |
Old Index