mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
do not BUG() if memory cannot be allocated, just wait.
Signed-off-by: Vincent Hanquez <vincent@xensource.com>
This commit is contained in:
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. */
|
||||
|
||||