aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/tcp_output.c
diff options
context:
space:
mode:
authorSoheil Hassas Yeganeh <[email protected]>2018-02-27 23:22:40 +0000
committerDavid S. Miller <[email protected]>2018-03-02 02:27:49 +0000
commit7797dc41417eb0e03f39fc4356f7635bcdef108e (patch)
tree9ef5eb3e95c7ff55e975515a624ec7dd16a5c672 /net/ipv4/tcp_output.c
parentMerge branch 'net-phy-Reduce-duplication' (diff)
downloadkernel-7797dc41417eb0e03f39fc4356f7635bcdef108e.tar.gz
kernel-7797dc41417eb0e03f39fc4356f7635bcdef108e.zip
socket: skip checking sk_err for recvmmsg(MSG_ERRQUEUE)
recvmmsg does not call ___sys_recvmsg when sk_err is set. That is fine for normal reads but, for MSG_ERRQUEUE, recvmmsg should always call ___sys_recvmsg regardless of sk->sk_err to be able to clear error queue. Otherwise, users are not able to drain the error queue using recvmmsg. Signed-off-by: Soheil Hassas Yeganeh <[email protected]> Reviewed-by: Eric Dumazet <[email protected]> Signed-off-by: Willem de Bruijn <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/ipv4/tcp_output.c')
0 files changed, 0 insertions, 0 deletions