diff options
author | Eliad Peller <eliad@wizery.com> | 2011-11-24 09:50:00 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-11-28 14:43:57 -0500 |
commit | 5220da39b4f6bd2ee69d298111ebebc0de886f2f (patch) | |
tree | ce3f10fe8005a140e0539a424a7e1dfdad492a4d /net/mac80211/tx.c | |
parent | 4db4e0a17fb0e7b345b344cde141b252794c2f19 (diff) |
mac80211: call skb_put() before copying the data (trivial)
It doesn't have any actual effect here, but we should
skb_put() *before* copying the data.
Signed-off-by: Eliad Peller <eliad@wizery.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/tx.c')
-rw-r--r-- | net/mac80211/tx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mac80211/tx.c b/net/mac80211/tx.c index 6fad8fac3784..5a75fc020807 100644 --- a/net/mac80211/tx.c +++ b/net/mac80211/tx.c | |||
@@ -2265,10 +2265,10 @@ static void ieee80211_beacon_add_tim(struct ieee80211_if_ap *bss, | |||
2265 | /* Bitmap control */ | 2265 | /* Bitmap control */ |
2266 | *pos++ = n1 | aid0; | 2266 | *pos++ = n1 | aid0; |
2267 | /* Part Virt Bitmap */ | 2267 | /* Part Virt Bitmap */ |
2268 | skb_put(skb, n2 - n1); | ||
2268 | memcpy(pos, bss->tim + n1, n2 - n1 + 1); | 2269 | memcpy(pos, bss->tim + n1, n2 - n1 + 1); |
2269 | 2270 | ||
2270 | tim[1] = n2 - n1 + 4; | 2271 | tim[1] = n2 - n1 + 4; |
2271 | skb_put(skb, n2 - n1); | ||
2272 | } else { | 2272 | } else { |
2273 | *pos++ = aid0; /* Bitmap control */ | 2273 | *pos++ = aid0; /* Bitmap control */ |
2274 | *pos++ = 0; /* Part Virt Bitmap */ | 2274 | *pos++ = 0; /* Part Virt Bitmap */ |