]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
tipc: drop subscriber connection id invalidation
authorErik Hugne <erik.hugne@ericsson.com>
Thu, 6 Mar 2014 13:40:19 +0000 (14:40 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 14 Apr 2014 13:47:18 +0000 (06:47 -0700)
commit1b954f5307dec6871b1075537c22969e5786d1fc
treebdc962cccdb1e5a9cecf8e7d22d6231815f629f0
parentd7b4510a84a79153054e0ae707be2d6ed8322440
tipc: drop subscriber connection id invalidation

[ Upstream commit edcc0511b5ee7235282a688cd604e3ae7f9e1fc9 ]

When a topology server subscriber is disconnected, the associated
connection id is set to zero. A check vs zero is then done in the
subscription timeout function to see if the subscriber have been
shut down. This is unnecessary, because all subscription timers
will be cancelled when a subscriber terminates. Setting the
connection id to zero is actually harmful because id zero is the
identity of the topology server listening socket, and can cause a
race that leads to this socket being closed instead.

Signed-off-by: Erik Hugne <erik.hugne@ericsson.com>
Acked-by: Ying Xue <ying.xue@windriver.com>
Reviewed-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/subscr.c