diff --git a/linux-2.6-xen-sparse/drivers/xen/blkfront/blkfront.c b/linux-2.6-xen-sparse/drivers/xen/blkfront/blkfront.c index 7cf316644f..dcbccfefb9 100644 --- a/linux-2.6-xen-sparse/drivers/xen/blkfront/blkfront.c +++ b/linux-2.6-xen-sparse/drivers/xen/blkfront/blkfront.c @@ -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. */