]> git.baikalelectronics.ru Git - kernel.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)
commit34a6d7449baeac4bd8d48fad402d8d83c789b33b
treecf20ae35cad162b95da2e85929ce7fb8af71fe52
parent243c16edecf9adef03823e22fcc62dd921da8d39
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: 87ff32a7857f ("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