Skip to content

Commit

Permalink
tipc: purge links when bearer is disabled
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Erik Hugne authored and davem330 committed Feb 27, 2015
1 parent 7fe8097 commit afaa3f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/tipc/bearer.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit afaa3f6

Please sign in to comment.