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

[Xen-changelog] return -ENOMEM value instead of -1 when running out of memory.



# HG changeset patch
# User vhanquez@xxxxxxxxxxxxxxxxxxxxxxx
# Node ID 6ce7c026320e4d27c4782168bfddbb10254b18c7
# Parent  9f2c47ae2b86a3f936b1370973f7de1ad2693205
return -ENOMEM value instead of -1 when running out of memory.

Signed-off-by: Vincent Hanquez <vincent@xxxxxxxxxxxxx>

diff -r 9f2c47ae2b86 -r 6ce7c026320e 
linux-2.6-xen-sparse/drivers/xen/blkback/blkback.c
--- a/linux-2.6-xen-sparse/drivers/xen/blkback/blkback.c        Mon Jan 16 
23:43:58 2006
+++ b/linux-2.6-xen-sparse/drivers/xen/blkback/blkback.c        Mon Jan 16 
23:54:24 2006
@@ -544,7 +544,7 @@
                kfree(pending_grant_handles);
                kfree(pending_vaddrs);
                printk("%s: out of memory\n", __FUNCTION__);
-               return -1;
+               return -ENOMEM;
        }
 
        blkif_interface_init();

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.