projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4db4e0a
)
mac80211: call skb_put() before copying the data (trivial)
author
Eliad Peller
<eliad@wizery.com>
Thu, 24 Nov 2011 14:50:00 +0000
(16:50 +0200)
committer
John W. Linville
<linville@tuxdriver.com>
Mon, 28 Nov 2011 19:43:57 +0000
(14:43 -0500)
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>
net/mac80211/tx.c
patch
|
blob
|
blame
|
history
diff --git
a/net/mac80211/tx.c
b/net/mac80211/tx.c
index 6fad8fac3784df5de7919eb2177db53ad24fa984..5a75fc020807f423803bee869d4fd99309b872df 100644
(file)
--- 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,
/* Bitmap control */
*pos++ = n1 | aid0;
/* Part Virt Bitmap */
+ skb_put(skb, n2 - n1);
memcpy(pos, bss->tim + n1, n2 - n1 + 1);
tim[1] = n2 - n1 + 4;
- skb_put(skb, n2 - n1);
} else {
*pos++ = aid0; /* Bitmap control */
*pos++ = 0; /* Part Virt Bitmap */