summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErik Hugne <erik.hugne@ericsson.com>2015-02-27 08:56:56 +0100
committerDavid S. Miller <davem@davemloft.net>2015-02-27 18:18:47 -0500
commitafaa3f65f65fda2e7b190aac7e2a75d9a2a77cb6 (patch)
tree2d792c0fad27dffeee89fdafe4c0af7af08bfc1c
parent7fe8097cef5ff4ba1c7ced42bda97830ce00eec6 (diff)
downloadblackbird-op-linux-afaa3f65f65fda2e7b190aac7e2a75d9a2a77cb6.tar.gz
blackbird-op-linux-afaa3f65f65fda2e7b190aac7e2a75d9a2a77cb6.zip
tipc: purge links when bearer is disabled
If a bearer is disabled by manual intervention, all links over that bearer should be purged, indicated with the 'shutting_down' flag. Otherwise tipc will get confused if a new bearer is enabled using a different media type. Signed-off-by: Erik Hugne <erik.hugne@ericsson.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--net/tipc/bearer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/tipc/bearer.c b/net/tipc/bearer.c
index 48852c2dcc03..af6deeb397a8 100644
--- a/net/tipc/bearer.c
+++ b/net/tipc/bearer.c
@@ -742,7 +742,7 @@ int tipc_nl_bearer_disable(struct sk_buff *skb, struct genl_info *info)
return -EINVAL;
}
- bearer_disable(net, bearer, false);
+ bearer_disable(net, bearer, true);
rtnl_unlock();
return 0;
OpenPOWER on IntegriCloud