Skip to content

Commit 5220da3

Browse files
elplinvjw
authored andcommitted
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>
1 parent 4db4e0a commit 5220da3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎net/mac80211/tx.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2265,10 +2265,10 @@ static void ieee80211_beacon_add_tim(struct ieee80211_if_ap *bss,
22652265
/* Bitmap control */
22662266
*pos++ = n1 | aid0;
22672267
/* Part Virt Bitmap */
2268+
skb_put(skb, n2 - n1);
22682269
memcpy(pos, bss->tim + n1, n2 - n1 + 1);
22692270

22702271
tim[1] = n2 - n1 + 4;
2271-
skb_put(skb, n2 - n1);
22722272
} else {
22732273
*pos++ = aid0; /* Bitmap control */
22742274
*pos++ = 0; /* Part Virt Bitmap */

0 commit comments

Comments
 (0)