diff options
author | Rajkumar Manoharan <rmanoharan@atheros.com> | 2010-11-08 20:40:53 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-12-09 13:32:04 -0800 |
commit | cd4d6dacabca8a970ccbe35c502943cdd19ef090 (patch) | |
tree | af709789ae5118b62d2ee3c1f75ae689e2dd7719 /drivers/net | |
parent | 78e8b99c3f6db6ad9e72c1a0b386212ba2a5a97d (diff) |
ath9k_hw: Fix memory leak on ath9k_hw_rf_alloc_ext_banks failure
commit 48a7c3df14d0cda850337a9b3f9e667a0b12a996 upstream.
The allocated externel radio banks have to be freed in
case of ath9k_hw_rf_alloc_ext_banks failure.
Signed-off-by: Rajkumar Manoharan <rmanoharan@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/hw.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath9k/hw.c b/drivers/net/wireless/ath/ath9k/hw.c index 3384ca16456..a5779a77514 100644 --- a/drivers/net/wireless/ath/ath9k/hw.c +++ b/drivers/net/wireless/ath/ath9k/hw.c @@ -486,6 +486,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; } |