]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
bhyve: fix typos checking CPU dies
authorDaniel P. Berrangé <berrange@redhat.com>
Fri, 17 Jan 2020 12:31:16 +0000 (12:31 +0000)
committerDaniel P. Berrangé <berrange@redhat.com>
Fri, 17 Jan 2020 12:32:09 +0000 (12:32 +0000)
This fixes a build bug introduced by

  commit fbf27730a36da573b1065c179f4d96b9a751f22f
  Author: Daniel P. Berrangé <berrange@redhat.com>
  Date:   Mon Dec 16 11:16:51 2019 +0000

    conf: add support for specifying CPU "dies" parameter

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
src/bhyve/bhyve_command.c

index d78221aea8748b027ef5725aec4099bb49559f83..a8bfc0aa729684d85077c134c18f761d1289e9a2 100644 (file)
@@ -453,10 +453,10 @@ virBhyveProcessBuildBhyveCmd(virConnectPtr conn,
     /* CPUs */
     virCommandAddArg(cmd, "-c");
     if (def->cpu && def->cpu->sockets) {
-        if (def->dies != 1) {
+        if (def->cpu->dies != 1) {
             virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
                            _("Only 1 die per socket is supported"));
-            goto cleanup;
+            goto error;
         }
         if (nvcpus != def->cpu->sockets * def->cpu->cores * def->cpu->threads) {
             virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",