WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-ppc-devel

[XenPPC] [pushed] [ppc] xencomm_alloc() should panic if it cannot get a

To: xen-ppc-devel@xxxxxxxxxxxxxxxxxxx
Subject: [XenPPC] [pushed] [ppc] xencomm_alloc() should panic if it cannot get a free page
From: jimix@xxxxxxxxxxxxxx
Date: Tue, 16 May 2006 15:57:05 -0400
Delivery-date: Tue, 16 May 2006 12:55:13 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-ppc-devel-request@lists.xensource.com?subject=help>
List-id: Xen PPC development <xen-ppc-devel.lists.xensource.com>
List-post: <mailto:xen-ppc-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ppc-devel>, <mailto:xen-ppc-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ppc-devel>, <mailto:xen-ppc-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-ppc-devel-bounces@xxxxxxxxxxxxxxxxxxx
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

<Prev in Thread] Current Thread [Next in Thread>
  • [XenPPC] [pushed] [ppc] xencomm_alloc() should panic if it cannot get a free page, jimix <=