Skip to content

Commit afaa3f6

Browse files
Erik Hugnedavem330
authored andcommitted
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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 7fe8097 commit afaa3f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/tipc/bearer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -742,7 +742,7 @@ int tipc_nl_bearer_disable(struct sk_buff *skb, struct genl_info *info)
742742
return -EINVAL;
743743
}
744744

745-
bearer_disable(net, bearer, false);
745+
bearer_disable(net, bearer, true);
746746
rtnl_unlock();
747747

748748
return 0;

0 commit comments

Comments
 (0)