]> xenbits.xensource.com Git - arm/linux.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)
committerStefano Stabellini <stefano.stabellini@xilinx.com>
Tue, 5 Oct 2021 21:01:40 +0000 (14:01 -0700)
commit69117aaf07f7197d1f1a789ad0e6e1a919ff531d
tree26dfa0cd80bd4dc4ead67ffc7e5fb83c1c7be5fd
parenta6c5dd1dbaffe4cc398d8454546ba9246b9a95c9
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>
(cherry picked from commit 0432523f4807a83902857347bd73eb817ef0a742)
drivers/xen/privcmd.c