Date: Mon, 15 Jan 2007 22:50:13 GMT From: Kip Macy <kmacy@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 112954 for review Message-ID: <200701152250.l0FMoD5h031895@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=112954 Change 112954 by kmacy@kmacy_serendipity:sam_wifi on 2007/01/15 22:49:30 fix panic in iwi_node_free caused by ic_ifp not being set when media_init is indirectly called from attach, by moving initialization of ic_ifp earlier Affected files ... .. //depot/projects/wifi/sys/dev/iwi/if_iwi.c#20 edit Differences ... ==== //depot/projects/wifi/sys/dev/iwi/if_iwi.c#20 (text+ko) ==== @@ -378,6 +378,7 @@ device_printf(dev, "can not if_alloc()\n"); goto fail; } + ic->ic_ifp = ifp; ifp->if_softc = sc; if_initname(ifp, device_get_name(dev), device_get_unit(dev)); ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST; @@ -389,7 +390,6 @@ ifp->if_snd.ifq_drv_maxlen = IFQ_MAXLEN; IFQ_SET_READY(&ifp->if_snd); - ic->ic_ifp = ifp; ic->ic_wme.wme_update = iwi_wme_update; ic->ic_phytype = IEEE80211_T_OFDM; /* not only, but not used */ ic->ic_opmode = IEEE80211_M_STA; /* default to BSS mode */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200701152250.l0FMoD5h031895>