tipc: fix RDM/DGRAM connect() regression
authorErik Hugne <erik.hugne@gmail.com>
Mon, 4 Mar 2019 22:26:10 +0000 (23:26 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 5 Mar 2019 20:49:13 +0000 (12:49 -0800)
commit0e63208915a8d7590d0a6218dadb2a6a00ac705a
treebe66e549d57eaf645f112f5a071f092450acd286
parentd9862cfbe2099deb83f0e9c1932c91f2d9c50464
tipc: fix RDM/DGRAM connect() regression

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>
net/tipc/socket.c