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:
490b3f4
)
ath9k_hw: Fix memory leak on ath9k_hw_rf_alloc_ext_banks failure
author
Rajkumar Manoharan
<
[email protected]
>
Mon, 8 Nov 2010 15:10:53 +0000
(20:40 +0530)
committer
John W. Linville
<
[email protected]
>
Mon, 8 Nov 2010 21:53:48 +0000
(16:53 -0500)
The allocated externel radio banks have to be freed in
case of ath9k_hw_rf_alloc_ext_banks failure.
Cc:
[email protected]
Signed-off-by: Rajkumar Manoharan <
[email protected]
>
Signed-off-by: John W. Linville <
[email protected]
>
drivers/net/wireless/ath/ath9k/hw.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/ath/ath9k/hw.c
b/drivers/net/wireless/ath/ath9k/hw.c
index c3a49045986db96539257d78604247796fc5dc6a..6ebc68bca91f0a999614572b38f69452df49645d 100644
(file)
--- a/
drivers/net/wireless/ath/ath9k/hw.c
+++ b/
drivers/net/wireless/ath/ath9k/hw.c
@@
-484,6
+484,7
@@
static int ath9k_hw_post_init(struct ath_hw *ah)
ath_print(ath9k_hw_common(ah), ATH_DBG_FATAL,
"Failed allocating banks for "
"external radio\n");
+ ath9k_hw_rf_free_ext_banks(ah);
return ecode;
}