From: Wei Liu Subject: Re: [PATCH] libxl: check return value of libxl_vcpu_setaffinity Date: Wed, 8 Apr 2015 16:58:55 +0100 Message-ID: <20150408155855.GN30811@zion.uk.xensource.com> References: <1428505101-6403-1-git-send-email-wei.liu2@citrix.com> <21797.20334.848382.60314@mariner.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <21797.20334.848382.60314@mariner.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Jackson Cc: andrew.cooper3@citrix.com, Dario Faggioli , Wei Liu , Ian Campbell , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Wed, Apr 08, 2015 at 04:55:26PM +0100, Ian Jackson wrote: > 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 `}' ? > Yes, you're right. I will resend. Wei. > Ian.