From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755082AbZHCNDp (ORCPT ); Mon, 3 Aug 2009 09:03:45 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755070AbZHCNDo (ORCPT ); Mon, 3 Aug 2009 09:03:44 -0400 Received: from smtp-out002.kontent.com ([81.88.40.216]:36913 "EHLO smtp-out002.kontent.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755063AbZHCNDm (ORCPT ); Mon, 3 Aug 2009 09:03:42 -0400 From: Oliver Neukum To: Alex Riesen Subject: Re: Oops in CDC ACM after an Openmoko phone (neo1973) changes its usb interface from ACM to Ethernet Date: Mon, 3 Aug 2009 15:04:19 +0200 User-Agent: KMail/1.10.3 (Linux/2.6.31-rc4-0.1-default; KDE/4.1.3; x86_64; ; ) Cc: Alan Stern , linux-usb@vger.kernel.org, Oliver Neukum , Linux Kernel Mailing List , "Greg Kroah-Hartman" , Alan Cox References: <81b0412b0908021339s739c07edvd4d5eb4c21cfa167@mail.gmail.com> <81b0412b0908021409h73fc2fcfo64c4ba9ee1f0d552@mail.gmail.com> <81b0412b0908030217o1e687c2ewf0191687a78d6166@mail.gmail.com> In-Reply-To: <81b0412b0908030217o1e687c2ewf0191687a78d6166@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Disposition: inline Message-Id: <200908031504.20506.oliver@neukum.org> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by alpha.home.local id n73D3s7T008997 Am Montag, 3. August 2009 11:17:05 schrieb Alex Riesen:> 466             ep = (usb_pipein(acm->rx_endpoint) ? acm->dev->ep_in :> acm->dev->ep_out)> 467                             [usb_pipeendpoint(acm->rx_endpoint)];> 468             if (usb_endpoint_xfer_int(&ep->desc))>> So it looks like ep is NULL (usb_endpoint_xfer_int accesses> desc.bmAttributes, which is 3 bytes off the beginning of struct> usb_host_endpoint (desc being the first field in usb_host_endpoint). This tells you that the device has been disconnected. The questionis not why this function fails, but why it is called even though thedevice has been disconnected. Regards Oliver {.n++%ݶw{.n+{G{ayʇڙ,jfhz_(階ݢj"mG?&~iOzv^m ?I