]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
tipc: ignore requests when the connection state is not CONNECTED
authorParthasarathy Bhuvaragan <parthasarathy.bhuvaragan@ericsson.com>
Tue, 24 Jan 2017 12:00:47 +0000 (13:00 +0100)
committerThadeu Lima de Souza Cascardo <cascardo@canonical.com>
Tue, 27 Jun 2017 13:16:39 +0000 (10:16 -0300)
commit399ed251f184d724718cb47b07c516e4bb3dab12
tree7d2c4041be747315edb29e17a766dae38b68efa9
parent64badea8b927d979a6f41817bad978287bf9e9d7
tipc: ignore requests when the connection state is not CONNECTED

BugLink: http://bugs.launchpad.net/bugs/1698817
[ 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>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
net/tipc/server.c