Commit 0e8d1602 authored by John W. Linville's avatar John W. Linville

ath5k: free sc->ah in ath5k_deinit_softc

Nothing else is freeing it, and this mirrors the error handling path
already in ath5k_init_softc.

https://bugzilla.kernel.org/show_bug.cgi?id=37592Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
Reported-by: default avatarTsyvarev Andrey <tsyvarev@ispras.ru>
parent 898f699e
......@@ -2960,6 +2960,7 @@ ath5k_deinit_softc(struct ath5k_softc *sc)
* state and potentially want to use them.
*/
ath5k_hw_deinit(sc->ah);
kfree(sc->ah);
free_irq(sc->irq, sc);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment