linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: mohammed <mohammed@qca.qualcomm.com>
To: Vasanthakumar Thiagarajan <vthiagar@qca.qualcomm.com>
Cc: <linville@tuxdriver.com>, <linux-wireless@vger.kernel.org>,
	<rodrigue@qca.qualcomm.com>, <senthilb@qca.qualcomm.com>,
	<rmanohar@qca.qualcomm.com>, <Larry.Finger@lwfinger.net>
Subject: Re: [PATCH] ath9k_htc: Fix few possible memory leaks
Date: Mon, 22 Aug 2011 19:26:07 +0530	[thread overview]
Message-ID: <4E525FF7.6070904@qca.qualcomm.com> (raw)
In-Reply-To: <20110822052918.GA30951@vasanth-laptop>

On Monday 22 August 2011 10:59 AM, Vasanthakumar Thiagarajan wrote:
> On Sun, Aug 21, 2011 at 09:24:45PM +0530, Mohammed Shafi Shajakhan wrote:
>> From: Mohammed Shafi Shajakhan<mohammed@qca.qualcomm.com>
>>
>> still there are few other memory leaks which will be fixed
>> very soon
>>
>> Cc: Rajkumar Manoharan<rmanohar@qca.qualcomm.com>
>> Signed-off-by: Mohammed Shafi Shajakhan<mohammed@qca.qualcomm.com>
>> Signed-off-by: Larry Finger<Larry.Finger@lwfinger.net>
>> ---
>>   drivers/net/wireless/ath/ath9k/htc_hst.c |   13 ++++++++-----
>>   drivers/net/wireless/ath/ath9k/wmi.c     |    3 ++-
>>   2 files changed, 10 insertions(+), 6 deletions(-)
>>
>> diff --git a/drivers/net/wireless/ath/ath9k/htc_hst.c b/drivers/net/wireless/ath/ath9k/htc_hst.c
>> index 1b90ed8..e435c9b 100644
>> --- a/drivers/net/wireless/ath/ath9k/htc_hst.c
>> +++ b/drivers/net/wireless/ath/ath9k/htc_hst.c
>> @@ -169,13 +169,14 @@ static int htc_config_pipe_credits(struct htc_target *target)
>>   	time_left = wait_for_completion_timeout(&target->cmd_wait, HZ);
>>   	if (!time_left) {
>>   		dev_err(target->dev, "HTC credit config timeout\n");
>> -		return -ETIMEDOUT;
>> +		ret = -ETIMEDOUT;
>> +		goto err;
>
> Are you sure we have to free the skb upon timeout?. It looks like
> it is already taken care in ath9k_htc_txcompletion_cb(). The same
> may apply to your other changes as well.


Vasanth thanks for your review, I haven't and not aware of that code 
flow/callback. I will check into that.

thanks,
shafi

>
> Vasanth


  reply	other threads:[~2011-08-22 13:56 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-21 15:54 [PATCH] ath9k_htc: Fix few possible memory leaks Mohammed Shafi Shajakhan
2011-08-22  5:29 ` Vasanthakumar Thiagarajan
2011-08-22 13:56   ` mohammed [this message]
2011-08-22 16:48     ` Larry Finger
2011-08-23  5:04       ` mohammed
2011-08-24 17:48 ` John W. Linville
2011-08-24 18:04   ` Mohammed Shafi

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=4E525FF7.6070904@qca.qualcomm.com \
    --to=mohammed@qca.qualcomm.com \
    --cc=Larry.Finger@lwfinger.net \
    --cc=linux-wireless@vger.kernel.org \
    --cc=linville@tuxdriver.com \
    --cc=rmanohar@qca.qualcomm.com \
    --cc=rodrigue@qca.qualcomm.com \
    --cc=senthilb@qca.qualcomm.com \
    --cc=vthiagar@qca.qualcomm.com \
    /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;
as well as URLs for NNTP newsgroup(s).