android_kernel_oneplus_msm8998/net/tipc
Parthasarathy Bhuvaragan 8b1aa26798 tipc: ignore requests when the connection state is not CONNECTED
[ Upstream commit 4c887aa65d38633885010277f3482400681be719 ]

In tipc_conn_sendmsg(), we first queue the request to the outqueue
followed by the connection state check. If the connection is not
connected, we should not queue this message.

In this commit, we reject the messages if the connection state is
not CF_CONNECTED.

Acked-by: Ying Xue <ying.xue@windriver.com>
Acked-by: Jon Maloy <jon.maloy@ericsson.com>
Tested-by: John Thompson <thompa.atl@gmail.com>
Signed-off-by: Parthasarathy Bhuvaragan <parthasarathy.bhuvaragan@ericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-06-17 06:39:38 +02:00
..
addr.c
addr.h
bcast.c
bcast.h
bearer.c tipc: check minimum bearer MTU 2017-04-30 05:49:28 +02:00
bearer.h tipc: check minimum bearer MTU 2017-04-30 05:49:28 +02:00
core.c tipc: make dist queue pernet 2017-04-30 05:49:27 +02:00
core.h tipc: make dist queue pernet 2017-04-30 05:49:27 +02:00
discover.c
discover.h
eth_media.c
ib_media.c
Kconfig
link.c tipc: move linearization of buffers to generic code 2016-09-24 10:07:35 +02:00
link.h
Makefile
msg.c
msg.h
name_distr.c tipc: fix random link resets while adding a second bearer 2017-04-30 05:49:28 +02:00
name_distr.h
name_table.c
name_table.h
net.c
net.h
netlink.c
netlink.h
netlink_compat.c tipc: fix nl compat regression for link statistics 2016-09-15 08:27:49 +02:00
node.c tipc: correct error in node fsm 2017-04-30 05:49:27 +02:00
node.h
server.c tipc: ignore requests when the connection state is not CONNECTED 2017-06-17 06:39:38 +02:00
server.h
socket.c tipc: fix socket timer deadlock 2017-04-30 05:49:28 +02:00
socket.h
subscr.c tipc: fix nullptr crash during subscription cancel 2016-09-15 08:27:44 +02:00
subscr.h
sysctl.c
udp_media.c tipc: check minimum bearer MTU 2017-04-30 05:49:28 +02:00