diff options
-rw-r--r-- | interface.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/interface.c b/interface.c index c5addea..d749896 100644 --- a/interface.c +++ b/interface.c @@ -420,10 +420,10 @@ interface_set_main_dev(struct interface *iface, struct device *dev) if (iface->main_dev.dev == dev) return; - device_add_user(&iface->main_dev, dev); if (set_l3) interface_set_l3_dev(iface, dev); + device_add_user(&iface->main_dev, dev); if (claimed) device_claim(&iface->l3_dev); |