Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 15 Nov 2004 21:37:33 +0000 (UTC)
From:      "Bjoern A. Zeeb" <bzeeb-lists@lists.zabbadoz.net>
To:        John-Mark Gurney <jmg@FreeBSD.org>
Cc:        cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/sys/pci if_sk.c if_skreg.h
Message-ID:  <Pine.BSF.4.53.0411152130590.9964@e0-0.zab2.int.zabbadoz.net>
In-Reply-To: <200411151937.iAFJbLak002480@repoman.freebsd.org>
References:  <200411151937.iAFJbLak002480@repoman.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 15 Nov 2004, John-Mark Gurney wrote:

> jmg         2004-11-15 19:37:21 UTC
>
>   FreeBSD src repository
>
>   Modified files:
>     sys/pci              if_sk.c if_skreg.h
>   Log:
>   fix the missing lock in sk_jfree (verified w/ an assert)
>   also fix up handling and proding of the tx, _OACTIVE is now handled
>   better...
>
>   Submitted by:   Peter Edwards (sk_jfree)
>   Obtained from:  OpenBSD and/or NetBSD (tx prod)

This seems to be different from the version in
http://lists.freebsd.org/pipermail/freebsd-current/2004-November/042195.html
I had reports of people running into the panic in sk_jfree
with the patch from this link.

Thanks.

*hmm*

> @@ -1104,6 +1106,7 @@ sk_jfree(buf, args)
>
>  	/* Extract the softc struct pointer. */
>  	sc_if = (struct sk_if_softc *)args;
> +	SK_IF_LOCK(sc_if);
>
>  	if (sc_if == NULL)
>  		panic("sk_jfree: didn't get softc pointer!");

mind moving the SK_IF_LOCK down behind the NULL/panic check ?

-- 
Bjoern A. Zeeb				bzeeb at Zabbadoz dot NeT



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