Skip to content
Commit 642b62df authored by Andrew Jeddeloh's avatar Andrew Jeddeloh Committed by Zbigniew Jędrzejewski-Szmek
Browse files

networkd: dont crash when mtu changes (#6594)

Prevent networkd from crashing when UseMTU is used. Many drivers will
bring the link down and then back up to configure a new MTU. Networkd
will also asynchonously send rtnl messages to configure the link and may
receive responses after the link has gone down and come back up (which
networkd will handle and set the lease and network to NULL.

This changes the behavior to instead return if this is the case instead
of crashing via assert.

(cherry picked from commit 0c9b15a3)
parent 7943496d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment