X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;ds=inline;f=lib%2Fnetdev-linux.c;h=5bbaf632f26d38f4172660a2c57fd7ad50ae215a;hb=2f980d741737fd3296d8063d800753a2d77bd730;hp=ba0d8633c3cc47dd61cd1e88f88c8ba3a6230d9b;hpb=c22762302c290fceccb14c2e33097fd6b5f11f57;p=sliver-openvswitch.git diff --git a/lib/netdev-linux.c b/lib/netdev-linux.c index ba0d8633c..5bbaf632f 100644 --- a/lib/netdev-linux.c +++ b/lib/netdev-linux.c @@ -555,6 +555,7 @@ netdev_linux_cache_cb(const struct rtnetlink_link_change *change, get_flags(&dev->up, &flags); netdev_linux_changed(dev, flags, 0); + netdev_close(netdev); } shash_destroy(&device_shash); } @@ -1180,6 +1181,7 @@ netdev_linux_miimon_run(void) bool miimon; if (dev->miimon_interval <= 0 || !timer_expired(&dev->miimon_timer)) { + netdev_close(netdev); continue; } @@ -1190,6 +1192,7 @@ netdev_linux_miimon_run(void) } timer_set_duration(&dev->miimon_timer, dev->miimon_interval); + netdev_close(netdev); } shash_destroy(&device_shash); @@ -1210,6 +1213,7 @@ netdev_linux_miimon_wait(void) if (dev->miimon_interval > 0) { timer_wait(&dev->miimon_timer); } + netdev_close(netdev); } shash_destroy(&device_shash); }