Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 253028
b: refs/heads/master
c: 9b83c77
h: refs/heads/master
v: v3
  • Loading branch information
Dan Carpenter authored and Konrad Rzeszutek Wilk committed Jun 1, 2011
1 parent e6382ac commit 2868b71
Show file tree
Hide file tree
Showing 2 changed files with 7 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: 6464920a6e30604cb71d0ecbaa20e35009bd76fb
refs/heads/master: 9b83c771214cf6a256ee875050e6eaf320cf7983
10 changes: 6 additions & 4 deletions trunk/drivers/block/xen-blkback/blkback.c
Original file line number Diff line number Diff line change
Expand Up @@ -809,11 +809,13 @@ static int __init xen_blkif_init(void)
failed_init:
kfree(blkbk->pending_reqs);
kfree(blkbk->pending_grant_handles);
for (i = 0; i < mmap_pages; i++) {
if (blkbk->pending_pages[i])
__free_page(blkbk->pending_pages[i]);
if (blkbk->pending_pages) {
for (i = 0; i < mmap_pages; i++) {
if (blkbk->pending_pages[i])
__free_page(blkbk->pending_pages[i]);
}
kfree(blkbk->pending_pages);
}
kfree(blkbk->pending_pages);
kfree(blkbk);
blkbk = NULL;
return rc;
Expand Down

0 comments on commit 2868b71

Please sign in to comment.