Commit 975ef94a authored by Pan Bian's avatar Pan Bian Committed by Juergen Gross

pvcalls-front: fixes incorrect error handling

kfree() is incorrectly used to release the pages allocated by
__get_free_page() and __get_free_pages(). Use the matching deallocators
i.e., free_page() and free_pages(), respectively.
Signed-off-by: default avatarPan Bian <>
Reviewed-by: default avatarStefano Stabellini <>
Signed-off-by: default avatarJuergen Gross <>
parent 12366410
......@@ -385,8 +385,8 @@ static int create_active(struct sock_mapping *map, int *evtchn)
if (*evtchn >= 0)
xenbus_free_evtchn(pvcalls_front_dev, *evtchn);
free_pages((unsigned long)map->, PVCALLS_RING_ORDER);
free_page((unsigned long)map->active.ring);
return ret;
Markdown is supported
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