From: "Jan Beulich" Subject: Re: [PATCH] x86/S3: Fix cpu pool scheduling after suspend/resume (v2) Date: Wed, 17 Apr 2013 17:20:59 +0100 Message-ID: <516EE80C02000078000CE47A@nat28.tlf.novell.com> References: <1366212324-15666-1-git-send-email-benjamin.guthro@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1366212324-15666-1-git-send-email-benjamin.guthro@citrix.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ben Guthro Cc: Juergen Gross , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org >>> On 17.04.13 at 17:25, Ben Guthro wrote: > --- a/xen/common/cpupool.c > +++ b/xen/common/cpupool.c > @@ -41,7 +41,9 @@ static struct cpupool *alloc_cpupool_struct(void) > { > struct cpupool *c = xzalloc(struct cpupool); > > - if ( c && zalloc_cpumask_var(&c->cpu_valid) ) > + if ( c && > + zalloc_cpumask_var(&c->cpu_suspended) && > + zalloc_cpumask_var(&c->cpu_valid) ) > return c; > xfree(c); > return NULL; You may leak c->cpu_suspended now. Also, please look out again for use of hard tabs in your additions. Jan