summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMike Belopuhov <mikeb@cvs.openbsd.org>2010-10-05 08:57:35 +0000
committerMike Belopuhov <mikeb@cvs.openbsd.org>2010-10-05 08:57:35 +0000
commit15b8f31720d5b5e7280c4ff50f428136c01635b2 (patch)
tree305d5be38716175f76d702e26173dbdfbe414d19 /sys
parent7deac2e45aa90dc439d5e5b28d6c90575d7c7c15 (diff)
add missing splx in the debug codepath. nevertheless that
doesn't mean it should be wrong. ok blambert, jsg
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/ic/re.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/ic/re.c b/sys/dev/ic/re.c
index bb55cb317a5..0fdd6260187 100644
--- a/sys/dev/ic/re.c
+++ b/sys/dev/ic/re.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: re.c,v 1.128 2010/08/27 17:08:00 jsg Exp $ */
+/* $OpenBSD: re.c,v 1.129 2010/10/05 08:57:34 mikeb Exp $ */
/* $FreeBSD: if_re.c,v 1.31 2004/09/04 07:54:05 ru Exp $ */
/*
* Copyright (c) 1997, 1998-2003
@@ -2042,8 +2042,10 @@ re_init(struct ifnet *ifp)
if (sc->sc_hwrev != RL_HWREV_8139CPLUS)
CSR_WRITE_2(sc, RL_MAXRXPKTLEN, 16383);
- if (sc->rl_testmode)
+ if (sc->rl_testmode) {
+ splx(s);
return (0);
+ }
mii_mediachg(&sc->sc_mii);