]> git.baikalelectronics.ru Git - kernel.git/commit
tipc: clean up removal of binding table items
authorJon Maloy <jon.maloy@ericsson.com>
Wed, 9 May 2018 00:59:41 +0000 (02:59 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 10 May 2018 19:25:45 +0000 (15:25 -0400)
commit61b77a7bb8a62aa4476dd25c55349a7ec9039465
tree407a08b3bbd39d030ddd5830d99adccbdf596cb6
parent6f7f86b6c76aa9e48a0b545aaa2b4379b40ebbb9
tipc: clean up removal of binding table items

In commit dd12421d54d5 ("tipc: fix use-after-free in tipc_nametbl_stop")
we fixed a problem caused by premature release of service range items.

That fix is correct, and solved the problem. However, it doesn't address
the root of the problem, which is that we don't lookup the tipc_service
 -> service_range -> publication items in the correct hierarchical
order.

In this commit we try to make this right, and as a side effect obtain
some code simplification.

Acked-by: Ying Xue <ying.xue@windriver.com>
Signed-off-by: Jon Maloy <jon.maloy@ericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tipc/name_table.c