From: Erik Hugne Date: Fri, 27 Feb 2015 07:56:56 +0000 (+0100) Subject: tipc: purge links when bearer is disabled X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=afaa3f65f65fda2e7b190aac7e2a75d9a2a77cb6;p=linux-beck.git 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 Signed-off-by: David S. Miller --- 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;