From: Mohammed Shafi <mshajakhan@atheros.com>
To: Luis Rodriguez <Luis.Rodriguez@Atheros.com>
Cc: "linux-wireless@vger.kernel.org" <linux-wireless@vger.kernel.org>
Subject: Re: [PATCH 9/9] ath9k: Fix memory leak due to failed PAPRD frames
Date: Tue, 29 Mar 2011 13:12:00 +0530 [thread overview]
Message-ID: <4D918D48.9040809@atheros.com> (raw)
In-Reply-To: <1301345835-11401-10-git-send-email-lrodriguez@atheros.com>
On Tuesday 29 March 2011 02:27 AM, Luis Rodriguez wrote:
> From: Mohammed Shafi Shajakhan<mshajakhan@atheros.com>
>
> commit 479600777bb588724d044815415f7d708d06644b upstream
>
> free the skb's when the Tx of PAPRD frames fails and also add a debug
> message indicating that.
>
> Signed-off-by: Mohammed Shafi Shajakhan<mshajakhan@atheros.com>
> Cc: stable@kernel.org
> Signed-off-by: John W. Linville<linville@tuxdriver.com>
> ---
> drivers/net/wireless/ath/ath9k/main.c | 5 ++++-
> 1 files changed, 4 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/net/wireless/ath/ath9k/main.c b/drivers/net/wireless/ath/ath9k/main.c
> index 1049313..16b8e36 100644
> --- a/drivers/net/wireless/ath/ath9k/main.c
> +++ b/drivers/net/wireless/ath/ath9k/main.c
> @@ -384,8 +384,11 @@ void ath_paprd_calibrate(struct work_struct *work)
> init_completion(&sc->paprd_complete);
> ar9003_paprd_setup_gain_table(ah, chain);
> txctl.paprd = BIT(chain);
> - if (ath_tx_start(hw, skb,&txctl) != 0)
> + if (ath_tx_start(hw, skb,&txctl) != 0) {
> + ath_print(common, ATH_DBG_XMIT, "PAPRD TX failed\n");
> + dev_kfree_skb_any(skb);
> break;
> + }
>
> time_left = wait_for_completion_timeout(&sc->paprd_complete,
> msecs_to_jiffies(ATH_PAPRD_TIMEOUT));
>
Luis, thanks!
next prev parent reply other threads:[~2011-03-29 7:42 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-28 20:57 [PATCH 0/9] ath9k/ath9k_htc: pending stable patches for 2.6.37.y Luis R. Rodriguez
2011-03-28 20:57 ` [PATCH 1/9] ath9k: simplify hw reset locking Luis R. Rodriguez
2011-03-28 20:57 ` [PATCH 2/9] ath9k: move the PCU lock to the sc structure Luis R. Rodriguez
2011-03-28 20:57 ` [PATCH 3/9] ath9k: content DMA start / stop through the PCU lock Luis R. Rodriguez
2011-03-28 20:57 ` [PATCH 4/9] ath9k: Fix power save count imbalance on ath_radio_enable() Luis R. Rodriguez
2011-03-28 20:57 ` [PATCH 5/9] ath9k_hw: fix potential spurious tx error bit interpretation Luis R. Rodriguez
2011-03-28 20:57 ` [PATCH 6/9] ath9k_hw: ASPM interoperability fix for AR9380/AR9382 Luis R. Rodriguez
2011-03-28 20:57 ` [PATCH 7/9] ath9k: add missing ps wakeup/restore calls Luis R. Rodriguez
2011-03-28 20:57 ` [PATCH 8/9] ath9k_htc: fix race conditions when stop device Luis R. Rodriguez
2011-03-28 20:57 ` [PATCH 9/9] ath9k: Fix memory leak due to failed PAPRD frames Luis R. Rodriguez
2011-03-29 7:42 ` Mohammed Shafi [this message]
2011-03-28 21:02 ` [PATCH 0/9] ath9k/ath9k_htc: pending stable patches for 2.6.37.y Greg KH
2011-03-28 21:14 ` Luis R. Rodriguez
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4D918D48.9040809@atheros.com \
--to=mshajakhan@atheros.com \
--cc=Luis.Rodriguez@Atheros.com \
--cc=linux-wireless@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox