[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [XenPPC] [pushed] [ppc] xencomm_alloc() should panic if it cannot get a free page
changeset: 27806:4e7484809d28e09870caed5481c841663a160911 user: jimix@xxxxxxxxxxxxxxxxxxxxx date: Tue May 16 15:43:16 2006 -0400 files: drivers/xen/core/xencomm.c description: [ppc] xencomm_alloc() should panic if it cannot get a free page diff -r 54713300858a54eb3abe9d47515ec1169c8ace46 -r 4e7484809d28e09870caed5481c841663a160911 drivers/xen/core/xencomm.c --- a/drivers/xen/core/xencomm.c Mon May 15 17:32:44 2006 -0400 +++ b/drivers/xen/core/xencomm.c Tue May 16 15:43:16 2006 -0400 @@ -101,6 +101,9 @@ static struct xencomm_desc *xencomm_allo /* XXX could we call this from irq context? */ desc = (struct xencomm_desc *)__get_free_page(gfp_mask); + if (desc == NULL) { + panic("%s: failed\n"); + } desc->nr_addrs = (PAGE_SIZE - sizeof(struct xencomm_desc)) / sizeof(*desc->address); _______________________________________________ Xen-ppc-devel mailing list Xen-ppc-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-ppc-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |