Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756139AbXICSgM (ORCPT ); Mon, 3 Sep 2007 14:36:12 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753382AbXICSfz (ORCPT ); Mon, 3 Sep 2007 14:35:55 -0400 Received: from khc.piap.pl ([195.187.100.11]:59253 "EHLO khc.piap.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752502AbXICSfy (ORCPT ); Mon, 3 Sep 2007 14:35:54 -0400 To: Jiri Slaby Cc: "John W. Linville" , Andrew Morton , linux-kernel@vger.kernel.org, netdev@vger.kernel.org Subject: Ath5k panic fix From: Krzysztof Halasa Date: Mon, 03 Sep 2007 20:35:52 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 691 Lines: 19 Ath5k panics on ath_open() because sc->pdev is never set, fixed. Signed-off-by: Krzysztof Halasa --- a/drivers/net/wireless/ath5k_base.c +++ b/drivers/net/wireless/ath5k_base.c @@ -2295,6 +2295,7 @@ static int __devinit ath_pci_probe(struct pci_dev *pdev, hw->max_rssi = 127; /* FIXME: get a real value for this. */ sc = hw->priv; sc->hw = hw; + sc->pdev = pdev; /* * Mark the device as detached to avoid processing - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/