do not BUG() if memory cannot be allocated, just wait.

Signed-off-by: Vincent Hanquez <vincent@xensource.com>
This commit is contained in:
vhanquez@kneesa.uk.xensource.com committed 2006-02-20 17:14:19 +00:00
1 parent 2d93dbc65a
commit b5532eb9d7
1 file changed
+1 -2
@@ -726,8 +726,7 @@ static void blkif_recover(struct blkfront_info *info)
int j;
/* Stage 1: Make a safe copy of the shadow state. */
copy = kmalloc(sizeof(info->shadow), GFP_KERNEL);
BUG_ON(copy == NULL);
copy = kmalloc(sizeof(info->shadow), GFP_KERNEL | __GFP_NOFAIL);
memcpy(copy, info->shadow, sizeof(info->shadow));
/* Stage 2: Set up free list. */
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.