Ath5k panic fix

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Jiri Slaby <jirislaby@...>
Cc: John W. Linville <linville@...>, Andrew Morton <akpm@...>, <linux-kernel@...>, <netdev@...>
Date: Monday, September 3, 2007 - 2:35 pm

Ath5k panics on ath_open() because sc->pdev is never set, fixed.

Signed-off-by: Krzysztof Halasa <khc@pm.waw.pl>

--- 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
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Ath5k panic fix, Krzysztof Halasa, (Mon Sep 3, 2:35 pm)