tipc: fix RDM/DGRAM connect() regression
Subsystems (3)
PATCH 1/1 tipc: fix RDM/DGRAM connect() regression
From: Erik Hugne <[email protected]>
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.
Signed-off-by Erik Hugne <[email protected]>
Signed-off-by Jon Maloy <[email protected]>
--- net/tipc/socket.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
net/tipc/socket.c +1 -1
@@ -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 ; }
Signature · 1 line
2.1.4
From: Jon Maloy <[email protected]>
Date: Mon, 4 Mar 2019 23:26:10 +0100
Quoted 11 lines
From: Erik Hugne <[email protected]>
Fix regression bug introduced in
commit365ad353c256("tipc: reduce risk of user starvation during link congestion")Only signal
-EDESTADDRREQfor RDM/DGRAM if we don't have a cached sockaddr.Signed-off-by Erik Hugne <[email protected]>Signed-off-by Jon Maloy <[email protected]>
Please provide a proper Fixes: tag next time, I fixed it up for you this time around.
Applied, thanks.