From 15b8f31720d5b5e7280c4ff50f428136c01635b2 Mon Sep 17 00:00:00 2001 From: Mike Belopuhov Date: Tue, 5 Oct 2010 08:57:35 +0000 Subject: add missing splx in the debug codepath. nevertheless that doesn't mean it should be wrong. ok blambert, jsg --- sys/dev/ic/re.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'sys') 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); -- cgit v1.2.3