From: Sujith Manoharan <sujith@msujith.org>
To: Larry Finger <Larry.Finger@lwfinger.net>
Cc: John Linville <linville@tuxdriver.com>, linux-wireless@vger.kernel.org
Subject: Re: [PATCH] ath9k_htc: Fix memory leak
Date: Wed, 9 Jan 2013 22:23:40 +0530 [thread overview]
Message-ID: <20717.41108.36571.933800@gargle.gargle.HOWL> (raw)
In-Reply-To: <50ED9E7B.8050702@lwfinger.net>
Larry Finger wrote:
> Yes, your fix handles the normal case, and you can add a
> Tested-by: Larry Finger <Larry.Finger@lwfinger.net>
Thanks.
> I still have one remaining question. It is possible for the timeout code in
> htc_config_pipe_credits() to be executed, as shown below:
>
> time_left = wait_for_completion_timeout(&target->cmd_wait, HZ);
> if (!time_left) {
> dev_err(target->dev, "HTC credit config timeout\n");
> return -ETIMEDOUT;
> }
>
> When this timeout happens, is the skb leaked?
No, the submitted SKB (via htc_issue_send()) will always have a TX completion
invocation. The actual completion of target->cmd_wait happens via a different
code-path, htc_process_conn_rsp() in ath9k_htc_rx_msg().
Sujith
prev parent reply other threads:[~2013-01-09 16:54 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-09 10:37 [PATCH] ath9k_htc: Fix memory leak Sujith Manoharan
2013-01-09 16:44 ` Larry Finger
2013-01-09 16:53 ` Sujith Manoharan [this message]
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=20717.41108.36571.933800@gargle.gargle.HOWL \
--to=sujith@msujith.org \
--cc=Larry.Finger@lwfinger.net \
--cc=linux-wireless@vger.kernel.org \
--cc=linville@tuxdriver.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