diff options
Diffstat (limited to 'net/mac80211/rx.c')
-rw-r--r-- | net/mac80211/rx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mac80211/rx.c b/net/mac80211/rx.c index 6a9b8e63a6bf..754125185109 100644 --- a/net/mac80211/rx.c +++ b/net/mac80211/rx.c | |||
@@ -1335,7 +1335,7 @@ ieee80211_deliver_skb(struct ieee80211_rx_data *rx) | |||
1335 | * mac80211. That also explains the __skb_push() | 1335 | * mac80211. That also explains the __skb_push() |
1336 | * below. | 1336 | * below. |
1337 | */ | 1337 | */ |
1338 | align = (unsigned long)skb->data & 3; | 1338 | align = ((unsigned long)(skb->data + sizeof(struct ethhdr))) & 3; |
1339 | if (align) { | 1339 | if (align) { |
1340 | if (WARN_ON(skb_headroom(skb) < 3)) { | 1340 | if (WARN_ON(skb_headroom(skb) < 3)) { |
1341 | dev_kfree_skb(skb); | 1341 | dev_kfree_skb(skb); |