mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-03 08:16:42 +07:00
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=37592 Signed-off-by: John W. Linville <linville@tuxdriver.com> Reported-by: Tsyvarev Andrey <tsyvarev@ispras.ru>
This commit is contained in:
parent
898f699e7f
commit
0e8d1602b2
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user