From: Andy Grover Date: Thu, 11 Mar 2010 13:49:56 +0000 (+0000) Subject: RDS: sendmsg() should check sndtimeo, not rcvtimeo X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1123fd734df6ad82373a5a27f0f2ed3115555b9d;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git RDS: sendmsg() should check sndtimeo, not rcvtimeo Most likely cut n paste error - sendmsg() was checking sock_rcvtimeo. Signed-off-by: Andy Grover Signed-off-by: David S. Miller --- diff --git a/net/rds/send.c b/net/rds/send.c index b2fccfc20769..ad2e46947c8a 100644 --- a/net/rds/send.c +++ b/net/rds/send.c @@ -815,7 +815,7 @@ int rds_sendmsg(struct kiocb *iocb, struct socket *sock, struct msghdr *msg, int ret = 0; int queued = 0, allocated_mr = 0; int nonblock = msg->msg_flags & MSG_DONTWAIT; - long timeo = sock_rcvtimeo(sk, nonblock); + long timeo = sock_sndtimeo(sk, nonblock); /* Mirror Linux UDP mirror of BSD error message compatibility */ /* XXX: Perhaps MSG_MORE someday */