summaryrefslogtreecommitdiffstats
path: root/kernel/drivers/xen/xenbus
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/drivers/xen/xenbus')
-rw-r--r--kernel/drivers/xen/xenbus/xenbus_client.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/kernel/drivers/xen/xenbus/xenbus_client.c b/kernel/drivers/xen/xenbus/xenbus_client.c
index 96b2011d2..658be6cc3 100644
--- a/kernel/drivers/xen/xenbus/xenbus_client.c
+++ b/kernel/drivers/xen/xenbus/xenbus_client.c
@@ -814,8 +814,10 @@ static int xenbus_unmap_ring_vfree_hvm(struct xenbus_device *dev, void *vaddr)
rv = xenbus_unmap_ring(dev, node->handles, node->nr_handles,
addrs);
- if (!rv)
+ if (!rv) {
vunmap(vaddr);
+ free_xenballooned_pages(node->nr_handles, node->hvm.pages);
+ }
else
WARN(1, "Leaking %p, size %u page(s)\n", vaddr,
node->nr_handles);