lkml.org 
[lkml]   [2019]   [Mar]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 5.0 28/46] tipc: fix RDM/DGRAM connect() regression
    Date
    5.0-stable review patch.  If anyone has any objections, please let me know.

    ------------------

    From: Erik Hugne <erik.hugne@gmail.com>

    [ 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>
    ---
    net/tipc/socket.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    --- a/net/tipc/socket.c
    +++ b/net/tipc/socket.c
    @@ -1333,7 +1333,7 @@ static int __tipc_sendmsg(struct socket

    if (unlikely(!dest)) {
    dest = &tsk->peer;
    - if (!syn || dest->family != AF_TIPC)
    + if (!syn && dest->family != AF_TIPC)
    return -EDESTADDRREQ;
    }


    \
     
     \ /
      Last update: 2019-03-08 14:09    [W:4.147 / U:1.148 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site