From: Johannes Berg <johannes@sipsolutions.net>
To: Sujith <Sujith.Manoharan@atheros.com>
Cc: linville@tuxdriver.com, linux-wireless@vger.kernel.org
Subject: Re: [PATCH] mac80211: Fix panic in aggregation handling
Date: Wed, 18 Nov 2009 11:42:14 +0100 [thread overview]
Message-ID: <1258540934.30511.5.camel@johannes.local> (raw)
In-Reply-To: <19203.36926.787342.765046@gargle.gargle.HOWL>
[-- Attachment #1: Type: text/plain, Size: 1189 bytes --]
On Wed, 2009-11-18 at 11:42 +0530, Sujith wrote:
> Not assigning the vif pointer causes an oops.
> This patch fixes it.
Ouch, sorry about that, and thanks for the fix. I /thought/ I tested it
but apparently not :(
johannes
> Signed-off-by: Sujith <Sujith.Manoharan@atheros.com>
> ---
> net/mac80211/agg-tx.c | 2 ++
> 1 files changed, 2 insertions(+), 0 deletions(-)
>
> diff --git a/net/mac80211/agg-tx.c b/net/mac80211/agg-tx.c
> index 6ddd114..26d42e8 100644
> --- a/net/mac80211/agg-tx.c
> +++ b/net/mac80211/agg-tx.c
> @@ -489,6 +489,7 @@ void ieee80211_start_tx_ba_cb_irqsafe(struct ieee80211_vif *vif,
> ra_tid = (struct ieee80211_ra_tid *) &skb->cb;
> memcpy(&ra_tid->ra, ra, ETH_ALEN);
> ra_tid->tid = tid;
> + ra_tid->vif = vif;
>
> skb->pkt_type = IEEE80211_ADDBA_MSG;
> skb_queue_tail(&local->skb_queue, skb);
> @@ -625,6 +626,7 @@ void ieee80211_stop_tx_ba_cb_irqsafe(struct ieee80211_vif *vif,
> ra_tid = (struct ieee80211_ra_tid *) &skb->cb;
> memcpy(&ra_tid->ra, ra, ETH_ALEN);
> ra_tid->tid = tid;
> + ra_tid->vif = vif;
>
> skb->pkt_type = IEEE80211_DELBA_MSG;
> skb_queue_tail(&local->skb_queue, skb);
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 801 bytes --]
prev parent reply other threads:[~2009-11-18 10:42 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-18 6:12 [PATCH] mac80211: Fix panic in aggregation handling Sujith
2009-11-18 10:42 ` Johannes Berg [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=1258540934.30511.5.camel@johannes.local \
--to=johannes@sipsolutions.net \
--cc=Sujith.Manoharan@atheros.com \
--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