From: John W. Linville Date: Fri, 17 Jun 2011 20:41:30 +0000 (-0400) Subject: ath5k: free sc->ah in ath5k_deinit_softc X-Git-Tag: MMI-PSA29.97-13-9~18350^2~12^2~42^2~395 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0e8d1602b223efcd4eaaa799314f5d7ad1742035;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git 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 Reported-by: Tsyvarev Andrey --- diff --git a/drivers/net/wireless/ath/ath5k/base.c b/drivers/net/wireless/ath/ath5k/base.c index 3e70b1418a4a..a6623ddfdefe 100644 --- a/drivers/net/wireless/ath/ath5k/base.c +++ b/drivers/net/wireless/ath/ath5k/base.c @@ -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); }