[PATCH] Handle maloc() failure in xen_get_nr_phys_cpus()

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

 



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.

-- 
Horms
  H: http://www.vergenet.net/~horms/
  W: http://www.valinux.co.jp/en/




[Index of Archives]     [LM Sensors]     [Linux Sound]     [ALSA Users]     [ALSA Devel]     [Linux Audio Users]     [Linux Media]     [Kernel]     [Gimp]     [Yosemite News]     [Linux Media]

  Powered by Linux