Skip to content

Commit

Permalink
mac80211: Fix dangling pointer in ieee80211_xmit
Browse files Browse the repository at this point in the history
hdr pointer is left dangling after call to ieee80211_skb_resize. This
can cause guards around mesh path selection to fail.

Signed-off-by: Steve deRosier <steve@cozybit.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Steve deRosier authored and John W. Linville committed Sep 14, 2010
1 parent a1e567c commit 740c1aa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions net/mac80211/tx.c
Original file line number Diff line number Diff line change
Expand Up @@ -1609,6 +1609,7 @@ static void ieee80211_xmit(struct ieee80211_sub_if_data *sdata,
return;
}

hdr = (struct ieee80211_hdr *) skb->data;
info->control.vif = &sdata->vif;

if (ieee80211_vif_is_mesh(&sdata->vif) &&
Expand Down

0 comments on commit 740c1aa

Please sign in to comment.