diff options
Diffstat (limited to 'net/tipc/socket.c')
-rw-r--r-- | net/tipc/socket.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/net/tipc/socket.c b/net/tipc/socket.c index aba4255f297b..d5fa708f037d 100644 --- a/net/tipc/socket.c +++ b/net/tipc/socket.c | |||
@@ -518,8 +518,7 @@ static int send_msg(struct kiocb *iocb, struct socket *sock, | |||
518 | res = -EISCONN; | 518 | res = -EISCONN; |
519 | goto exit; | 519 | goto exit; |
520 | } | 520 | } |
521 | if ((tport->published) || | 521 | if (tport->published) { |
522 | ((sock->type == SOCK_STREAM) && (total_len != 0))) { | ||
523 | res = -EOPNOTSUPP; | 522 | res = -EOPNOTSUPP; |
524 | goto exit; | 523 | goto exit; |
525 | } | 524 | } |
@@ -1010,8 +1009,7 @@ static int recv_stream(struct kiocb *iocb, struct socket *sock, | |||
1010 | 1009 | ||
1011 | lock_sock(sk); | 1010 | lock_sock(sk); |
1012 | 1011 | ||
1013 | if (unlikely((sock->state == SS_UNCONNECTED) || | 1012 | if (unlikely((sock->state == SS_UNCONNECTED))) { |
1014 | (sock->state == SS_CONNECTING))) { | ||
1015 | res = -ENOTCONN; | 1013 | res = -ENOTCONN; |
1016 | goto exit; | 1014 | goto exit; |
1017 | } | 1015 | } |