Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit df1c2986 authored by Dan Carpenter's avatar Dan Carpenter Committed by John W. Linville
Browse files

ath5k: re-order one of the frees on unwind



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: default avatarDan Carpenter <error27@gmail.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 903786a5
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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: