tipc: purge links when bearer is disabled
authorErik Hugne <erik.hugne@ericsson.com>
Fri, 27 Feb 2015 07:56:56 +0000 (08:56 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 27 Feb 2015 23:18:47 +0000 (18:18 -0500)
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>
net/tipc/bearer.c

index 48852c2dcc033585a733c73fc5646834f9d458e8..af6deeb397a891e7c110a8c1e61bfbdf893496b7 100644 (file)
@@ -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;