Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 25 Oct 2001 18:18:35 +0200 (CEST)
From:      Alexander Leidinger <Alexander@Leidinger.net>
To:        current@FreeBSD.ORG
Cc:        hm@freebsd.org
Subject:   Fix (Re: panic: mutex i4b_isic_rx already initialized)
Message-ID:  <200110251618.f9PGIa601176@Magelan.Leidinger.net>
In-Reply-To: <200110211519.f9LFJUN01534@Magelan.Leidinger.net>

next in thread | previous in thread | raw e-mail | index | archive | help
--0-1804289383-1004026718=:1173
Content-Type: TEXT/plain; charset=us-ascii

On 21 Okt, An: current@FreeBSD.ORG wrote:
> Hi,
> 
> current as of Oct. 21 (~12am CET), I just booted with a new kernel+world
> and tried to dial out.

At least the attached patch (against -current as of today morning) makes
me able to dial out and send out this mail.

Bye,
Alexander.

-- 
Actually, Microsoft is sort of a mixture between the Borg and the Ferengi.

http://www.Leidinger.net                       Alexander @ Leidinger.net
  GPG fingerprint = C518 BC70 E67F 143F BE91  3365 79E2 9C60 B006 3FE7

--0-1804289383-1004026718=:1173
Content-Type: TEXT/plain; name="i4b.diff"
Content-Disposition: attachment; filename="i4b.diff"

Index: sys/i4b/layer1/isic/i4b_bchan.c
===================================================================
RCS file: /big/FreeBSD-CVS/src/sys/i4b/layer1/isic/i4b_bchan.c,v
retrieving revision 1.7
diff -u -r1.7 i4b_bchan.c
--- sys/i4b/layer1/isic/i4b_bchan.c	24 Jan 2001 08:41:52 -0000	1.7
+++ sys/i4b/layer1/isic/i4b_bchan.c	25 Oct 2001 16:08:50 -0000
@@ -90,7 +90,8 @@
 	chan->rx_queue.ifq_maxlen = IFQ_MAXLEN;
 
 #if defined (__FreeBSD__) && __FreeBSD__ > 4	
-	mtx_init(&chan->rx_queue.ifq_mtx, "i4b_isic_rx", MTX_DEF);
+	if (!mtx_initialized(&chan->rx_queue.ifq_mtx))
+		mtx_init(&chan->rx_queue.ifq_mtx, "i4b_isic_rx", MTX_DEF);
 #endif
 
 	i4b_Bcleanifq(&chan->rx_queue);	/* clean rx queue */
@@ -108,7 +109,8 @@
 	chan->tx_queue.ifq_maxlen = IFQ_MAXLEN;
 
 #if defined (__FreeBSD__) && __FreeBSD__ > 4	
-	mtx_init(&chan->tx_queue.ifq_mtx, "i4b_isic_tx", MTX_DEF);
+	if (!mtx_initialized(&chan->tx_queue.ifq_mtx))
+		mtx_init(&chan->tx_queue.ifq_mtx, "i4b_isic_tx", MTX_DEF);
 #endif
 	
 	i4b_Bcleanifq(&chan->tx_queue);	/* clean tx queue */

--0-1804289383-1004026718=:1173--

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200110251618.f9PGIa601176>