Date: Tue, 30 Oct 2007 12:07:58 GMT From: Tai-hwa Liang <avatar@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 128330 for review Message-ID: <200710301207.l9UC7wn5069280@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=128330 Change 128330 by avatar@avatar_t40 on 2007/10/30 12:07:46 an_stats_update() should not go any further after the device is detached. This fixes the card removal panic reported by user. Reported by: dhw (http://lists.freebsd.org/pipermail/freebsd-current/2007-October/078937.html) Tested by: dhw MFP4 after: 3 days Affected files ... .. //depot/projects/wifi/sys/dev/an/if_an.c#19 edit Differences ... ==== //depot/projects/wifi/sys/dev/an/if_an.c#19 (text+ko) ==== @@ -1151,6 +1151,12 @@ sc = xsc; AN_LOCK(sc); + + if (sc->an_gone) { + AN_UNLOCK(sc); + return; + } + ifp = sc->an_ifp; sc->an_status.an_type = AN_RID_STATUS;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200710301207.l9UC7wn5069280>