]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
vz: Don't try to jump on a non-existent label in prlsdkRemoveBootDevices()
authorMichal Privoznik <mprivozn@redhat.com>
Wed, 8 Jan 2020 08:46:27 +0000 (09:46 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 8 Jan 2020 09:14:55 +0000 (10:14 +0100)
Commit v5.10.0-522-g9000b2f298 was too aggressive and removed the
'error' label from prlsdkRemoveBootDevices() even though it's
used. Luckily, it's used only from one place and we have an
alternative for it that doesn't require the label.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/vz/vz_sdk.c

index 473719dcfecfc76bf7cb0c63549e2d4433e1297b..32e00467630205924b55a30671bf75cd90831d07 100644 (file)
@@ -2725,7 +2725,7 @@ prlsdkRemoveBootDevices(PRL_HANDLE sdkdom)
     PRL_DEVICE_TYPE devType;
 
     pret = PrlVmCfg_GetBootDevCount(sdkdom, &devCount);
-    prlsdkCheckRetGoto(pret, error);
+    prlsdkCheckRetExit(pret, -1);
 
     for (i = 0; i < devCount; i++) {