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-changelog

[Xen-changelog] [linux-2.6.18-xen] [IA64] Add vmalloc failure test

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [linux-2.6.18-xen] [IA64] Add vmalloc failure test
From: "Xen patchbot-linux-2.6.18-xen" <patchbot-linux-2.6.18-xen@xxxxxxxxxxxxxxxxxxx>
Date: Tue, 11 Sep 2007 15:31:06 -0700
Delivery-date: Tue, 11 Sep 2007 15:35:23 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Alex Williamson <alex.williamson@xxxxxx>
# Date 1188326662 21600
# Node ID df2d73ab847a0766f016981704e04fb0a15819de
# Parent  72f2e9c1302da86348e88330913b790b15e9ec16
[IA64] Add vmalloc failure test

Signed-off-by: Alex Williamson <alex.williamson@xxxxxx>
---
 arch/ia64/kernel/salinfo.c |    5 +++++
 1 files changed, 5 insertions(+)

diff -r 72f2e9c1302d -r df2d73ab847a arch/ia64/kernel/salinfo.c
--- a/arch/ia64/kernel/salinfo.c        Tue Aug 28 12:40:47 2007 -0600
+++ b/arch/ia64/kernel/salinfo.c        Tue Aug 28 12:44:22 2007 -0600
@@ -381,6 +381,11 @@ salinfo_log_open(struct inode *inode, st
                unsigned long flags;
 
                entry = vmalloc(sizeof(ia64_mca_xencomm_t));
+               if (!entry) {
+                       data->open = 0;
+                       vfree(data->log_buffer);
+                       return -ENOMEM;
+               }
                entry->record = data->log_buffer;
                entry->handle = xencomm_map(data->log_buffer, 
                                        
ia64_sal_get_state_info_size(data->type));

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [linux-2.6.18-xen] [IA64] Add vmalloc failure test, Xen patchbot-linux-2.6.18-xen <=