Skip to contentSkip to conversation

Ath5k panic fix

PATCH Krzysztof Halasa 3 participants 3 messages Sep 3, 2007

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

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

drivers/net/wireless/ath5k_base.c +1 -0
@@ -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
Acked-by
#1 lore raw

Krzysztof Halasa napsal(a):

Quoted 3 lines

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

I wonder how it is possible that the driver works here.

Quoted 11 lines
drivers/net/wireless/ath5k_base.c +1 -1
@@ -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
-
Quoted 5 lines

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

thanks,

Signature · 2 lines
http://www.fi.muni.cz/~xslaby/            Jiri Slaby
faculty of informatics, masaryk university, brno, cz
#2 lore raw

2007/9/3, Jiri Slaby <[email protected]>:

Quoted 17 lines

Krzysztof Halasa napsal(a):

Quoted 3 lines

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

I wonder how it is possible that the driver works here.

Quoted 8 lines
drivers/net/wireless/ath5k_base.c +1 -0
@@ -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;
 
Quoted 10 lines
Quoted 8 lines
drivers/net/wireless/ath5k_base.c +0 -1
      /*
       * 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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

thanks,

I've already fixed this on r2698 ;-)
http://madwifi.org/changeset/2698

Signature · 3 lines
GPG ID: 0xD21DB2DB
As you read this post global entropy rises. Have Fun ;-)
Nick