Wei Liu writes ("[PATCH] libxl: check return value of libxl_vcpu_setaffinity"):
> That function can fail.
...
>          }
>  
> -        libxl_for_each_set_bit(j, v->vcpus)
> -            libxl_set_vcpuaffinity(CTX, domid, j, NULL, &cpumap);
> +        libxl_for_each_set_bit(j, v->vcpus) {
> +            rc = libxl_set_vcpuaffinity(CTX, domid, j, NULL, &cpumap);
> +            if (rc) {
> +                LOG(ERROR, "Can't set cpu affinity for %d", j);
> +                goto out;
> +        }
>      }

Does this not have a missing `}' ?

Ian.

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

Reply via email to