Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 361980
b: refs/heads/master
c: 29d0b21
h: refs/heads/master
v: v3
  • Loading branch information
Mihnea Dobrescu-Balaur authored and Konrad Rzeszutek Wilk committed Mar 18, 2013
1 parent 53a2c98 commit f39fac9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0e5e098ac22dae38f957e951b70d3cf73beff0f7
refs/heads/master: 29d0b218c87ace1078e08bb32c2e72fc96fa3db3
3 changes: 1 addition & 2 deletions trunk/drivers/block/xen-blkfront.c
Original file line number Diff line number Diff line change
Expand Up @@ -1203,11 +1203,10 @@ static int blkif_recover(struct blkfront_info *info)
int j;

/* Stage 1: Make a safe copy of the shadow state. */
copy = kmalloc(sizeof(info->shadow),
copy = kmemdup(info->shadow, sizeof(info->shadow),
GFP_NOIO | __GFP_REPEAT | __GFP_HIGH);
if (!copy)
return -ENOMEM;
memcpy(copy, info->shadow, sizeof(info->shadow));

/* Stage 2: Set up free list. */
memset(&info->shadow, 0, sizeof(info->shadow));
Expand Down

0 comments on commit f39fac9

Please sign in to comment.