Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 273837
b: refs/heads/master
c: 8e6dc6f
h: refs/heads/master
i:
  273835: 616aa8a
v: v3
  • Loading branch information
Jan Beulich authored and Konrad Rzeszutek Wilk committed Oct 13, 2011
1 parent 932f070 commit b615af5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 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: c555aab97de139ac8762c922248bb68f43a8c488
refs/heads/master: 8e6dc6fe51957116d363204a725c1262b4b78e19
6 changes: 2 additions & 4 deletions trunk/drivers/block/xen-blkback/blkback.c
Original file line number Diff line number Diff line change
Expand Up @@ -823,9 +823,9 @@ static int __init xen_blkif_init(void)

mmap_pages = xen_blkif_reqs * BLKIF_MAX_SEGMENTS_PER_REQUEST;

blkbk->pending_reqs = kmalloc(sizeof(blkbk->pending_reqs[0]) *
blkbk->pending_reqs = kzalloc(sizeof(blkbk->pending_reqs[0]) *
xen_blkif_reqs, GFP_KERNEL);
blkbk->pending_grant_handles = kzalloc(sizeof(blkbk->pending_grant_handles[0]) *
blkbk->pending_grant_handles = kmalloc(sizeof(blkbk->pending_grant_handles[0]) *
mmap_pages, GFP_KERNEL);
blkbk->pending_pages = kzalloc(sizeof(blkbk->pending_pages[0]) *
mmap_pages, GFP_KERNEL);
Expand All @@ -848,8 +848,6 @@ static int __init xen_blkif_init(void)
if (rc)
goto failed_init;

memset(blkbk->pending_reqs, 0, sizeof(blkbk->pending_reqs));

INIT_LIST_HEAD(&blkbk->pending_free);
spin_lock_init(&blkbk->pending_free_lock);
init_waitqueue_head(&blkbk->pending_free_wq);
Expand Down

0 comments on commit b615af5

Please sign in to comment.