summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorErik Hugne <erik.hugne@gmail.com>2019-03-04 23:26:10 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-03-10 07:09:00 +0100
commit258c4bfcea44f0729187c05185a99bfc3ccc77e1 (patch)
treec7ea1e8e8e5be26fed789d67318a2394fcb5c9f6 /net
parentb0c649843a76cece77a569702a13183d9991c5d8 (diff)
downloadtalos-obmc-linux-258c4bfcea44f0729187c05185a99bfc3ccc77e1.tar.gz
talos-obmc-linux-258c4bfcea44f0729187c05185a99bfc3ccc77e1.zip
tipc: fix RDM/DGRAM connect() regression
[ Upstream commit 0e63208915a8d7590d0a6218dadb2a6a00ac705a ] Fix regression bug introduced in commit 365ad353c256 ("tipc: reduce risk of user starvation during link congestion") Only signal -EDESTADDRREQ for RDM/DGRAM if we don't have a cached sockaddr. Fixes: 365ad353c256 ("tipc: reduce risk of user starvation during link congestion") Signed-off-by: Erik Hugne <erik.hugne@gmail.com> Signed-off-by: Jon Maloy <jon.maloy@ericsson.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net')
-rw-r--r--net/tipc/socket.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/tipc/socket.c b/net/tipc/socket.c
index 70343ac448b1..139694f2c576 100644
--- a/net/tipc/socket.c
+++ b/net/tipc/socket.c
@@ -1333,7 +1333,7 @@ static int __tipc_sendmsg(struct socket *sock, struct msghdr *m, size_t dlen)
if (unlikely(!dest)) {
dest = &tsk->peer;
- if (!syn || dest->family != AF_TIPC)
+ if (!syn && dest->family != AF_TIPC)
return -EDESTADDRREQ;
}
OpenPOWER on IntegriCloud