aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/rx.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/mac80211/rx.c')
-rw-r--r--net/mac80211/rx.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/net/mac80211/rx.c b/net/mac80211/rx.c
index 798fa82b6ae3..c832d408187e 100644
--- a/net/mac80211/rx.c
+++ b/net/mac80211/rx.c
@@ -1326,10 +1326,10 @@ ieee80211_deliver_skb(struct ieee80211_rx_data *rx)
1326 skb = NULL; 1326 skb = NULL;
1327 } else { 1327 } else {
1328 u8 *data = skb->data; 1328 u8 *data = skb->data;
1329 size_t len = skb->len; 1329 size_t len = skb_headlen(skb);
1330 u8 *new = __skb_push(skb, align); 1330 skb->data -= align;
1331 memmove(new, data, len); 1331 memmove(skb->data, data, len);
1332 __skb_trim(skb, len); 1332 skb_set_tail_pointer(skb, len);
1333 } 1333 }
1334 } 1334 }
1335#endif 1335#endif