pvcalls-front: fixes incorrect error handling
authorPan Bian <bianpan2016@163.com>
Thu, 22 Nov 2018 02:07:12 +0000 (10:07 +0800)
committerJuergen Gross <jgross@suse.com>
Thu, 29 Nov 2018 16:53:33 +0000 (17:53 +0100)
commit975ef94a0284648fb0137bd5e949b18cef604e33
treed1bb5234946209787b26a8d750572d7dcaffdec0
parent123664101aa2156d05251704fc63f9bcbf77741a
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: Pan Bian <bianpan2016@163.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
Signed-off-by: Juergen Gross <jgross@suse.com>
drivers/xen/pvcalls-front.c