[PATCH] Handle maloc() failure in xen_get_nr_phys_cpus()
horms at verge.net.au
Wed May 9 21:30:10 EDT 2007
On Wed, May 09, 2007 at 11:48:37AM +0100, Ian Campbell wrote:
> On Wed, 2007-05-09 at 18:56 +0900, Simon Horman wrote:
> > Currently xen_get_nr_phys_cpus() doesn't write to xen_phys_notes if
> > allocation fails, but it doesn't return an error either, leaving
> > xen_phys_notes wide open to be accessed by other functions later.
> > Signed-off-by: Simon Horman <horms at verge.net.au>
> Looks good to me.
> Acked-by: Ian Campbell <ian.campbell at xensource.com>
Thanks, I've applied it now.
More information about the kexec