2
0
mirror of https://github.com/openvswitch/ovs synced 2025-08-30 22:05:19 +00:00

netdev-linux: Fix netdev leak in corner case.

Reported-by: Alex Wang <alexw@nicira.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
This commit is contained in:
Ben Pfaff
2013-08-10 09:02:24 -07:00
parent 863838160e
commit 38e0065b1f

View File

@@ -513,9 +513,8 @@ netdev_linux_run(void)
ovs_mutex_lock(&netdev->mutex);
netdev_linux_update(netdev, &change);
ovs_mutex_unlock(&netdev->mutex);
netdev_close(netdev_);
}
netdev_close(netdev_);
}
} else if (error == ENOBUFS) {
struct shash device_shash;