ia64/xen-unstable

changeset 8623:6ce7c026320e

return -ENOMEM value instead of -1 when running out of memory.

Signed-off-by: Vincent Hanquez <vincent@xensource.com>
author vhanquez@kneesa.uk.xensource.com
date Mon Jan 16 23:54:24 2006 +0000 (2006-01-16)
parents 9f2c47ae2b86
children 1b7d6c2ae2f7
files linux-2.6-xen-sparse/drivers/xen/blkback/blkback.c
line diff
     1.1 --- a/linux-2.6-xen-sparse/drivers/xen/blkback/blkback.c	Mon Jan 16 23:43:58 2006 +0000
     1.2 +++ b/linux-2.6-xen-sparse/drivers/xen/blkback/blkback.c	Mon Jan 16 23:54:24 2006 +0000
     1.3 @@ -544,7 +544,7 @@ static int __init blkif_init(void)
     1.4  		kfree(pending_grant_handles);
     1.5  		kfree(pending_vaddrs);
     1.6  		printk("%s: out of memory\n", __FUNCTION__);
     1.7 -		return -1;
     1.8 +		return -ENOMEM;
     1.9  	}
    1.10  
    1.11  	blkif_interface_init();