]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
tipc: fix cancellation of topology subscriptions
authorErik Hugne <erik.hugne@gmail.com>
Thu, 21 Mar 2019 08:11:59 +0000 (09:11 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 21 Mar 2019 16:09:04 +0000 (09:09 -0700)
commit33872d79f5d1cbedaaab79669cc38f16097a9450
treecf20ae35cad162b95da2e85929ce7fb8af71fe52
parent64447506f152cf0f88a0fc23140ca1c5f7ff34a8
tipc: fix cancellation of topology subscriptions

When cancelling a subscription, we have to clear the cancel bit in the
request before iterating over any established subscriptions with memcmp.
Otherwise no subscription will ever be found, and it will not be
possible to explicitly unsubscribe individual subscriptions.

Fixes: 8985ecc7c1e0 ("tipc: simplify endianness handling in topology subscriber")
Signed-off-by: Erik Hugne <erik.hugne@gmail.com>
Signed-off-by: Jon Maloy <jon.maloy@ericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tipc/topsrv.c