]> xenbits.xensource.com Git - libvirt.git/commitdiff
network: Don't unlock non-locked network driver
authorMichal Privoznik <mprivozn@redhat.com>
Mon, 28 Nov 2016 15:45:12 +0000 (16:45 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Tue, 6 Dec 2016 12:33:18 +0000 (13:33 +0100)
In dd7bfb2cdc5d I've removed locking of the network driver upon
it's allocation. However, I forgot to remove one location of the
driver unlock.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
src/network/bridge_driver.c

index 9d94d65b4e2f7115082eb29bcf487d05d2d90913..073f5019a7029d6bb345f05d7d2ce1e1e5ee3232 100644 (file)
@@ -718,8 +718,6 @@ networkStateInitialize(bool privileged,
     return ret;
 
  error:
-    if (network_driver)
-        networkDriverUnlock(network_driver);
     networkStateCleanup();
     goto cleanup;
 }