]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
pvcalls-front: fixes incorrect error handling
authorPan Bian <bianpan2016@163.com>
Thu, 22 Nov 2018 02:07:12 +0000 (10:07 +0800)
committerSultan Alsawaf <sultan.alsawaf@canonical.com>
Wed, 24 Jul 2019 15:45:11 +0000 (09:45 -0600)
commite7881bbad698eed96217ef2cf8ba11f3e07d39a6
tree3b56587bf318600cb1186b2e5f17a3cef21161cc
parentafc2e0fb885d33446bfc554eff17c9c4de65dc48
pvcalls-front: fixes incorrect error handling

BugLink: https://bugs.launchpad.net/bugs/1837161
[ Upstream commit 975ef94a0284648fb0137bd5e949b18cef604e33 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/xen/pvcalls-front.c