Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 376437
b: refs/heads/master
c: 8d0b880
h: refs/heads/master
i:
  376435: 95bf343
v: v3
  • Loading branch information
Wei Liu authored and Konrad Rzeszutek Wilk committed May 29, 2013
1 parent d375f08 commit 026aff8
Show file tree
Hide file tree
Showing 2 changed files with 4 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: d69c0e3975e4955dd596c162d1628ba1dbb1eb45
refs/heads/master: 8d0b8801c9e4c2c6b20cdac74dbab16facce7653
5 changes: 3 additions & 2 deletions trunk/drivers/xen/xenbus/xenbus_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,7 @@ static int xenbus_map_ring_valloc_hvm(struct xenbus_device *dev,

err = xenbus_map_ring(dev, gnt_ref, &node->handle, addr);
if (err)
goto out_err;
goto out_err_free_ballooned_pages;

spin_lock(&xenbus_valloc_lock);
list_add(&node->next, &xenbus_valloc_pages);
Expand All @@ -543,8 +543,9 @@ static int xenbus_map_ring_valloc_hvm(struct xenbus_device *dev,
*vaddr = addr;
return 0;

out_err:
out_err_free_ballooned_pages:
free_xenballooned_pages(1, &node->page);
out_err:
kfree(node);
return err;
}
Expand Down

0 comments on commit 026aff8

Please sign in to comment.