]> git.baikalelectronics.ru Git - kernel.git/commit
xen/gntdev: switch from kcalloc() to kvcalloc()
authorJuergen Gross <jgross@suse.com>
Thu, 7 Nov 2019 11:15:46 +0000 (12:15 +0100)
committerJuergen Gross <jgross@suse.com>
Mon, 2 Dec 2019 06:39:23 +0000 (07:39 +0100)
commite9ac2ff6fb656bfb8e02767cf94e5e16aecd6067
tree1a22448012ce22795350d59a86f2fb2e40004623
parentac9c5b602e55bfb36506a14d7002b5f025f2dff1
xen/gntdev: switch from kcalloc() to kvcalloc()

With sufficient many pages to map gntdev can reach order 9 allocation
sizes. As there is no need to have physically contiguous buffers switch
to kvcalloc() in order to avoid failing allocations.

Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Oleksandr Andrushchenko <oleksandr_andrushchenko@epam.com>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Signed-off-by: Juergen Gross <jgross@suse.com>
drivers/xen/gntdev.c