]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
xen/privcmd: replace kcalloc() by kvcalloc() when allocating empty pages
authorJan Beulich <jbeulich@suse.com>
Wed, 22 Sep 2021 10:16:35 +0000 (12:16 +0200)
committerJuergen Gross <jgross@suse.com>
Tue, 5 Oct 2021 06:20:17 +0000 (08:20 +0200)
commit0432523f4807a83902857347bd73eb817ef0a742
tree36a76501fe1fda6ce82f22dfb39de4e84e1288f2
parent0594c58161b6e0f3da8efa9c6e3d4ba52b652717
xen/privcmd: replace kcalloc() by kvcalloc() when allocating empty pages

Osstest has been suffering test failures for a little while from order-4
allocation failures, resulting from alloc_empty_pages() calling
kcalloc(). As there's no need for physically contiguous space here,
switch to kvcalloc().

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Juergen Gross <jgross@suse.com>
Link: https://lore.kernel.org/r/6d698901-98a4-05be-c421-bcd0713f5335@suse.com
Signed-off-by: Juergen Gross <jgross@suse.com>
drivers/xen/privcmd.c