• Jon Maloy's avatar
    tipc: correct initial value for group congestion flag · 1b22bcad
    Jon Maloy authored
    In commit 60c25306 ("tipc: fix race between poll() and
    setsockopt()") we introduced a pointer from struct tipc_group to the
    'group_is_connected' flag in struct tipc_sock, so that this field can
    be checked without dereferencing the group pointer of the latter struct.
    
    The initial value for this flag is correctly set to 'false' when a
    group is created, but we miss the case when no group is created at
    all, in which case the initial value should be 'true'. This has the
    effect that SOCK_RDM/DGRAM sockets sending datagrams never receive
    POLLOUT if they request so.
    
    This commit corrects this bug.
    
    Fixes: 60c25306 ("tipc: fix race between poll() and setsockopt()")
    Reported-by: default avatarHoang Le <hoang.h.le@dektek.com.au>
    Signed-off-by: default avatarJon Maloy <jon.maloy@ericsson.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    1b22bcad
Name
Last commit
Last update
..
Kconfig Loading commit data...
Makefile Loading commit data...
addr.c Loading commit data...
addr.h Loading commit data...
bcast.c Loading commit data...
bcast.h Loading commit data...
bearer.c Loading commit data...
bearer.h Loading commit data...
core.c Loading commit data...
core.h Loading commit data...
discover.c Loading commit data...
discover.h Loading commit data...
eth_media.c Loading commit data...
group.c Loading commit data...
group.h Loading commit data...
ib_media.c Loading commit data...
link.c Loading commit data...
link.h Loading commit data...
monitor.c Loading commit data...
monitor.h Loading commit data...
msg.c Loading commit data...
msg.h Loading commit data...
name_distr.c Loading commit data...
name_distr.h Loading commit data...
name_table.c Loading commit data...
name_table.h Loading commit data...
net.c Loading commit data...
net.h Loading commit data...
netlink.c Loading commit data...
netlink.h Loading commit data...
netlink_compat.c Loading commit data...
node.c Loading commit data...
node.h Loading commit data...
server.c Loading commit data...
server.h Loading commit data...
socket.c Loading commit data...
socket.h Loading commit data...
subscr.c Loading commit data...
subscr.h Loading commit data...
sysctl.c Loading commit data...
udp_media.c Loading commit data...
udp_media.h Loading commit data...