]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
tipc: fix memory leak of publications
authorYing Xue <ying.xue@windriver.com>
Tue, 29 Apr 2014 03:12:18 +0000 (11:12 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 30 Apr 2014 17:31:26 +0000 (13:31 -0400)
commit1621b94d2a655c8548ddbdfc8ccf907a5bbdc860
tree84659a30a430a7bfe1bc19bf954b220ceb4f84a6
parent5c98631cca574ac6255885cf372f6bcf9dcfd483
tipc: fix memory leak of publications

Commit 1bb8dce57f4d15233688c68990852a10eb1cd79f ("tipc: fix memory
leak during module removal") introduced a memory leak issue: when
name table is stopped, it's forgotten that publication instances are
freed properly. Additionally the useless "continue" statement in
tipc_nametbl_stop() is removed as well.

Reported-by: Jason <huzhijiang@gmail.com>
Signed-off-by: Ying Xue <ying.xue@windriver.com>
Acked-by: Erik Hugne <erik.hugne@ericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tipc/name_table.c