return VIR_DRV_OPEN_DECLINED instead of VIR_DRV_OPEN_ERROR when vbox can't be

found so other hypervisors can be probed. Patch by Pritesh Kothari.
This commit is contained in:
Guido Günther 2009-05-08 10:18:26 +00:00
parent 67e2804ecb
commit 6059354da6
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
Fri May 8 12:15:05 CEST 2009 Guido Günther <agx@sigxcpu.org>
* src/vbox/vbox_tmpl.c (virDrvOpen): return VIR_DRV_OPEN_DECLINED
instead of VIR_DRV_OPEN_ERROR when vbox can't be found so other
hypervisors can be probed. Patch by Pritesh Kothari.
Fri May 8 12:09:12 CEST 2009 Guido Günther <agx@sigxcpu.org> Fri May 8 12:09:12 CEST 2009 Guido Günther <agx@sigxcpu.org>
* src/vbox/vbox_tmpl.c (vboxUninitialize): fix crash when init fails * src/vbox/vbox_tmpl.c (vboxUninitialize): fix crash when init fails

View File

@ -351,7 +351,7 @@ static virDrvOpenStatus vboxOpen(virConnectPtr conn,
return VIR_DRV_OPEN_SUCCESS; return VIR_DRV_OPEN_SUCCESS;
cleanup: cleanup:
vboxUninitialize(data); vboxUninitialize(data);
return VIR_DRV_OPEN_ERROR; return VIR_DRV_OPEN_DECLINED;
} }
static int vboxClose(virConnectPtr conn) { static int vboxClose(virConnectPtr conn) {