3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2025-01-03 19:02:34 +01:00

netdev: Don't emit events before NETDEV_WATCH_EVENT_NEW

This commit is contained in:
Andrew Zaborowski 2018-09-22 18:48:21 +02:00 committed by Denis Kenzior
parent c96f44b2e6
commit 916bde3a02

View File

@ -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)