commit 916bde3a02621c018752cada83ebf4040fd1194d parent c96f44b2e6bda16e1c68cc9a83eab513f6bead39 Author: Andrew Zaborowski <andrew.zaborowski@intel.com> Date: Sat, 22 Sep 2018 18:48:21 +0200 netdev: Don't emit events before NETDEV_WATCH_EVENT_NEW Diffstat:
| M | src/netdev.c | | | 3 | +++ |
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/src/netdev.c b/src/netdev.c @@ -4160,6 +4160,9 @@ static void netdev_newlink_notify(const struct ifinfomsg *ifi, int bytes) } } + if (!netdev->device) /* Did we send NETDEV_WATCH_EVENT_NEW yet? */ + return; + new_up = netdev_get_is_up(netdev); if (old_up != new_up)