aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorEric Sesterhenn <snakebyte@gmx.de>2006-06-21 15:05:58 -0400
committerJeff Garzik <jeff@garzik.org>2006-07-05 13:42:57 -0400
commit60d48f1e23c25d09dbe7025ff179b808d72704b3 (patch)
treebd312a2ec21212bbb4557ce4dfbaa77f82e111c6 /net
parent4b301536694facb93f597281580f5ad907d36050 (diff)
[PATCH] skb used after passing to netif_rx in net/ieee80211/ieee80211_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>
Diffstat (limited to 'net')
-rw-r--r--net/ieee80211/ieee80211_rx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ieee80211/ieee80211_rx.c b/net/ieee80211/ieee80211_rx.c
index 47ccf159372c..dd746e38db5d 100644
--- a/net/ieee80211/ieee80211_rx.c
+++ b/net/ieee80211/ieee80211_rx.c
@@ -402,9 +402,9 @@ int ieee80211_rx(struct ieee80211_device *ieee, struct sk_buff *skb,
402#endif 402#endif
403 403
404 if (ieee->iw_mode == IW_MODE_MONITOR) { 404 if (ieee->iw_mode == IW_MODE_MONITOR) {
405 ieee80211_monitor_rx(ieee, skb, rx_stats);
406 stats->rx_packets++; 405 stats->rx_packets++;
407 stats->rx_bytes += skb->len; 406 stats->rx_bytes += skb->len;
407 ieee80211_monitor_rx(ieee, skb, rx_stats);
408 return 1; 408 return 1;
409 } 409 }
410 410