tipc: use RTNL lock to protect tipc_net_stop routine
authorYing Xue <ying.xue@windriver.com>
Mon, 21 Apr 2014 02:55:44 +0000 (10:55 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 23 Apr 2014 01:17:52 +0000 (21:17 -0400)
commitf97e455abf0d83b7d69da295163db18e3ebb4d8b
tree2c3acf06e30c71220b54e873b14c6a5e497dd210
parentca07fb07c9a362149ea72f0de8f7eefd00489ecc
tipc: use RTNL lock to protect tipc_net_stop routine

As the tipc network initialization(ie, tipc_net_start routine) is
under RTNL protection, its corresponding deinitialization part(ie,
tipc_net_stop routine) should be protected by RTNL too.

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