From owner-freebsd-wireless@FreeBSD.ORG Tue May 20 05:46:54 2014 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 67FD8D34; Tue, 20 May 2014 05:46:54 +0000 (UTC) Received: from mail.turbocat.net (heidi.turbocat.net [88.198.202.214]) (using TLSv1.1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 26E482E94; Tue, 20 May 2014 05:46:53 +0000 (UTC) Received: from laptop015.home.selasky.org (cm-176.74.213.204.customer.telag.net [176.74.213.204]) (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id 986B11FE029; Tue, 20 May 2014 07:46:48 +0200 (CEST) Message-ID: <537AEC79.6080406@selasky.org> Date: Tue, 20 May 2014 07:47:37 +0200 From: Hans Petter Selasky User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 MIME-Version: 1.0 To: Idwer Vollering , freebsd-usb@freebsd.org, freebsd-wireless@freebsd.org Subject: Re: if_rsu hardware causes a kernel panic on removal.. References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: hps@bitfrost.no X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 May 2014 05:46:54 -0000 On 05/19/14 23:21, Idwer Vollering wrote: > ..while running a kernel that has rsu_debug set to >0. > > Line 1712: "fault virtual address = 0xffff804000000000" > core0.txt -> http://ra.openbios.org/~idwer/freebsd/fbsd_10-stable_rsu_panic_core_0.txt > > HTH, Hi, Does this patch make any difference? --HPS === ./if_rsu.c ================================================================== --- ./if_rsu.c (revision 266400) +++ ./if_rsu.c (local) @@ -423,8 +423,6 @@ struct ifnet *ifp = sc->sc_ifp; struct ieee80211com *ic = ifp->if_l2com; - if (!device_is_attached(self)) - return (0); rsu_stop(ifp, 1); usbd_transfer_unsetup(sc->sc_xfer, RSU_N_TRANSFER); ieee80211_ifdetach(ic);