Skip to content

Commit

Permalink
[PATCH] skb used after passing to netif_rx in net/ieee80211/ieee80211…
Browse files Browse the repository at this point in the history
…_rx.c

this patch fixes coverity id #913. ieee80211_monitor_rx() passes the skb
to netif_rx() and we should not reference it any longer.

Signed-off-by: Eric Sesterhenn <snakebyte@gmx.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Eric Sesterhenn authored and Jeff Garzik committed Jul 5, 2006
1 parent 4b30153 commit 60d48f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/ieee80211/ieee80211_rx.c
Original file line number Diff line number Diff line change
Expand Up @@ -402,9 +402,9 @@ int ieee80211_rx(struct ieee80211_device *ieee, struct sk_buff *skb,
#endif

if (ieee->iw_mode == IW_MODE_MONITOR) {
ieee80211_monitor_rx(ieee, skb, rx_stats);
stats->rx_packets++;
stats->rx_bytes += skb->len;
ieee80211_monitor_rx(ieee, skb, rx_stats);
return 1;
}

Expand Down

0 comments on commit 60d48f1

Please sign in to comment.