mirror of https://gitee.com/openkylin/libvirt.git
network: Don't unlock non-locked network driver
In dd7bfb2cdc
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>
This commit is contained in:
parent
fbec5b949b
commit
03e3da2212
|
@ -718,8 +718,6 @@ networkStateInitialize(bool privileged,
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
error:
|
error:
|
||||||
if (network_driver)
|
|
||||||
networkDriverUnlock(network_driver);
|
|
||||||
networkStateCleanup();
|
networkStateCleanup();
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue