Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 214869
b: refs/heads/master
c: 7c1e183
h: refs/heads/master
i:
  214867: 12910ef
v: v3
  • Loading branch information
John W. Linville committed Sep 27, 2010
1 parent e6d2eb0 commit acf618f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 92e44948b2b3b2db8f39f17033f98ae2356156a5
refs/heads/master: 7c1e183186377e84e6f4e457be0514887f2df4ef
4 changes: 4 additions & 0 deletions trunk/net/mac80211/rx.c
Original file line number Diff line number Diff line change
Expand Up @@ -2286,6 +2286,9 @@ static void ieee80211_rx_cooked_monitor(struct ieee80211_rx_data *rx,
struct net_device *prev_dev = NULL;
struct ieee80211_rx_status *status = IEEE80211_SKB_RXCB(skb);

if (status->flag & RX_FLAG_INTERNAL_CMTR)
goto out_free_skb;

if (skb_headroom(skb) < sizeof(*rthdr) &&
pskb_expand_head(skb, sizeof(*rthdr), 0, GFP_ATOMIC))
goto out_free_skb;
Expand Down Expand Up @@ -2344,6 +2347,7 @@ static void ieee80211_rx_cooked_monitor(struct ieee80211_rx_data *rx,
} else
goto out_free_skb;

status->flag |= RX_FLAG_INTERNAL_CMTR;
return;

out_free_skb:
Expand Down

0 comments on commit acf618f

Please sign in to comment.