]> git.baikalelectronics.ru Git - kernel.git/commit
tipc: ensure all name sequences are released when name table is stopped
authorYing Xue <ying.xue@windriver.com>
Tue, 2 Dec 2014 07:00:25 +0000 (15:00 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 9 Dec 2014 01:39:56 +0000 (20:39 -0500)
commiteb2172a87a6f2ec4d0beed9af9e9f9292024cbd9
treefda4efa237bd3481270aabae6a7bfee7bffdcf93
parentd4d512f729cac19a597e8aad1d7bf93239439b21
tipc: ensure all name sequences are released when name table is stopped

As TIPC subscriber server is terminated before name table, no user
depends on subscription list of name sequence when name table is
stopped. Therefore, all name sequences stored in name table should
be released whatever their subscriptions lists are empty or not,
otherwise, memory leak might happen.

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