Jon Maloy 1b22bcad7e tipc: correct initial value for group congestion flag
In commit 60c253069632 ("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: 60c253069632 ("tipc: fix race between poll() and setsockopt()")
Reported-by: Hoang Le <hoang.h.le@dektek.com.au>
Signed-off-by: Jon Maloy <jon.maloy@ericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2018-02-27 11:46:03 -05:00
..
2015-05-14 12:24:45 -04:00
2018-02-14 14:46:32 -05:00
2018-02-14 14:46:32 -05:00
2018-01-08 20:59:25 -05:00
2015-03-05 22:08:42 -05:00
2016-07-26 14:26:42 -07:00
2018-02-14 14:46:33 -05:00
2018-02-14 14:46:33 -05:00
2017-10-13 08:46:00 -07:00