Skip to content

Commit

Permalink
[UDP]: Counter increment should be in USER mode for recvmsg
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Wang Chen authored and David S. Miller committed Jan 28, 2008
1 parent b2bf1e2 commit bbca176
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/ipv4/udp.c
Original file line number Diff line number Diff line change
Expand Up @@ -899,7 +899,7 @@ int udp_recvmsg(struct kiocb *iocb, struct sock *sk, struct msghdr *msg,
return err;

csum_copy_err:
UDP_INC_STATS_BH(UDP_MIB_INERRORS, is_udplite);
UDP_INC_STATS_USER(UDP_MIB_INERRORS, is_udplite);

skb_kill_datagram(sk, skb, flags);

Expand Down

0 comments on commit bbca176

Please sign in to comment.