Return-path: Received: from charlotte.tuxdriver.com ([70.61.120.58]:51823 "EHLO smtp.tuxdriver.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751313Ab1G0OCZ (ORCPT ); Wed, 27 Jul 2011 10:02:25 -0400 Date: Wed, 27 Jul 2011 09:53:53 -0400 From: "John W. Linville" To: hubert Liao Cc: wlanfae@realtek.com, Larry Finger , Chaoming Li , linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: Oops when insmod rtl8192ce Message-ID: <20110727135353.GA16431@tuxdriver.com> (sfid-20110727_160229_583181_1295EA38) References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: Sender: linux-wireless-owner@vger.kernel.org List-ID: On Wed, Jul 27, 2011 at 05:20:15PM +0800, hubert Liao wrote: > Hi, > > We got an oops when insmod rtl8192ce module (the board is an ARM soc), > accroding the oops message, find it's because in rtl_pci_probe() called > _rtl_pci_find_adapter(), > in this funcation, the pdev->bus->self is a NULL pointer . > > static boot _rtl_pci_find_adapter(strcut pci_dev *dev, > struct ieee80211_hw *hw) > { > > struct pci_dev *bridge_pdev = pdev->bus->self; //line 1601 > ... > > pcipriv->ndis_adapter.pcibridge_vendorid = bridge_pdev->vendor; <-- [oops > here] line 1700 > > ... > } > > here, I just want to know why the bus->self is NULL? pdev is coming straight from what is passed to the PCI probe routine. It seems like pdev->bus->self should already be set before that happens. Please open a bug at bugzilla.kernel.org to help us keep track of this -- thanks! John -- John W. Linville Someday the world will need a hero, and you linville@tuxdriver.com might be all we have. Be ready.