aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWang Chen <wangchen@cn.fujitsu.com>2007-12-03 06:36:13 -0500
committerDavid S. Miller <davem@davemloft.net>2008-01-28 17:55:49 -0500
commitbbca17680f82b1ba3122d41e8bc675aebf6d1cf2 (patch)
treede0f679aabaf69e0136c17b70d27d8e67c67a800
parentb2bf1e2659b1cba5e65f81781cfd530be447f80b (diff)
[UDP]: Counter increment should be in USER mode for recvmsg
System calls should be USER. So change the BH to USER for UDP*_INC_STATS_BH(). Signed-off-by: Wang Chen <wangchen@cn.fujitsu.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--net/ipv4/udp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/udp.c b/net/ipv4/udp.c
index 5e67e3245299..d0283b7fcec5 100644
--- a/net/ipv4/udp.c
+++ b/net/ipv4/udp.c
@@ -899,7 +899,7 @@ out:
899 return err; 899 return err;
900 900
901csum_copy_err: 901csum_copy_err:
902 UDP_INC_STATS_BH(UDP_MIB_INERRORS, is_udplite); 902 UDP_INC_STATS_USER(UDP_MIB_INERRORS, is_udplite);
903 903
904 skb_kill_datagram(sk, skb, flags); 904 skb_kill_datagram(sk, skb, flags);
905 905