Signed-off-by: Pavel Hrdina <phrdina@xxxxxxxxxx> --- src/vbox/vbox_common.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/vbox/vbox_common.c b/src/vbox/vbox_common.c index 26168c3c5b..fc897735b0 100644 --- a/src/vbox/vbox_common.c +++ b/src/vbox/vbox_common.c @@ -245,6 +245,9 @@ vboxGetDriverConnection(void) if (!vbox_driver) { virReportError(VIR_ERR_INTERNAL_ERROR, "%s", _("Failed to create vbox driver object.")); + + virMutexUnlock(&vbox_driver_lock); + return NULL; } } -- 2.26.2