Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Eliad Peller and committed by
John W. Linville
5220da39 4db4e0a1

+1 -1
+1 -1
net/mac80211/tx.c
··· 2265 2265 /* Bitmap control */ 2266 2266 *pos++ = n1 | aid0; 2267 2267 /* Part Virt Bitmap */ 2268 + skb_put(skb, n2 - n1); 2268 2269 memcpy(pos, bss->tim + n1, n2 - n1 + 1); 2269 2270 2270 2271 tim[1] = n2 - n1 + 4; 2271 - skb_put(skb, n2 - n1); 2272 2272 } else { 2273 2273 *pos++ = aid0; /* Bitmap control */ 2274 2274 *pos++ = 0; /* Part Virt Bitmap */