[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH 2 of 5] xl: Introduce xl shutdown --all support for xm compatibility



On Wed, 2012-10-17 at 17:03 +0100, Ian Jackson wrote:
> Ian Campbell writes ("[PATCH 2 of 5] xl: Introduce xl shutdown --all support 
> for xm compatibility"):
> > xl: Introduce xl shutdown --all support for xm compatibility
> ...> 
> > Based on a patch by Sander Eikelenboom
> ...
> >  int main_shutdown(int argc, char **argv)
> ...
> > +        if (wait_for_it)
> > +            deathws = calloc(nb_domain, sizeof(deathws));
> 
> This should read sizeof(*deathws).  It's a shame we don't have a macro
> to avoid this broken pattern in xl.  In libxl we have GCNEW_ARRAY of
> course.  (In fact in this particular case the two things are both
> pointers so the sizeof() is the same and the bug is theoretical.)

Oops, will fix upon commit, thanks.

> Apart from that,
> 
> Acked-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
> 
> Ian.



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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.