提交 0e8d1602 编写于 作者: J 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: NJohn W. Linville <linville@tuxdriver.com>
Reported-by: NTsyvarev Andrey <tsyvarev@ispras.ru>
上级 898f699e
...@@ -2960,6 +2960,7 @@ ath5k_deinit_softc(struct ath5k_softc *sc) ...@@ -2960,6 +2960,7 @@ ath5k_deinit_softc(struct ath5k_softc *sc)
* state and potentially want to use them. * state and potentially want to use them.
*/ */
ath5k_hw_deinit(sc->ah); ath5k_hw_deinit(sc->ah);
kfree(sc->ah);
free_irq(sc->irq, sc); free_irq(sc->irq, sc);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册