Commit 8d0b8801 authored by Wei Liu's avatar Wei Liu Committed by Konrad Rzeszutek Wilk
Browse files

xenbus_client.c: correct exit path for xenbus_map_ring_valloc_hvm

Apparently we should not free page that has not been allocated.
This is b/c alloc_xenballooned_pages will take care of freeing
the page on its own.
Signed-off-by: default avatarWei Liu <>
Signed-off-by: default avatarKonrad Rzeszutek Wilk <>
parent d69c0e39
......@@ -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;
list_add(&node->next, &xenbus_valloc_pages);
......@@ -543,8 +543,9 @@ static int xenbus_map_ring_valloc_hvm(struct xenbus_device *dev,
*vaddr = addr;
return 0;
free_xenballooned_pages(1, &node->page);
return err;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment