projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
898f699
)
ath5k: free sc->ah in ath5k_deinit_softc
author
John W. Linville
<
[email protected]
>
Fri, 17 Jun 2011 20:41:30 +0000
(16:41 -0400)
committer
John W. Linville
<
[email protected]
>
Mon, 20 Jun 2011 19:34:19 +0000
(15:34 -0400)
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 <
[email protected]
>
Reported-by: Tsyvarev Andrey <
[email protected]
>
drivers/net/wireless/ath/ath5k/base.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/ath/ath5k/base.c
b/drivers/net/wireless/ath/ath5k/base.c
index 3e70b1418a4a053ac6d166e3777f902220593c8e..a6623ddfdefe3546b56961e3be2feeab6617a9bd 100644
(file)
--- 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);
}