ath5k: re-order one of the frees on unwind
authorDan Carpenter <error27@gmail.com>
Sat, 21 Aug 2010 19:24:59 +0000 (21:24 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 27 Aug 2010 17:27:05 +0000 (13:27 -0400)
There was a small misordering here.  In the original code, if we were to
go to err_free_ah then it wouldn't free the irq.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath5k/base.c

index f2fceb10c9fcdd11f370f5b907e958420fbc708e..45789c8990d3e705fe890d4952edd903b5054de4 100644 (file)
@@ -700,10 +700,10 @@ ath5k_pci_probe(struct pci_dev *pdev,
        return 0;
 err_ah:
        ath5k_hw_detach(sc->ah);
-err_irq:
-       free_irq(pdev->irq, sc);
 err_free_ah:
        kfree(sc->ah);
+err_irq:
+       free_irq(pdev->irq, sc);
 err_free:
        ieee80211_free_hw(hw);
 err_map: