Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit afaa3f65 authored by Erik Hugne's avatar Erik Hugne Committed by David S. Miller
Browse files

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: default avatarErik Hugne <erik.hugne@ericsson.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 7fe8097c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;