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)
commitb3f7931f5c61ba39e81a5c958bf5d65ebb1838af
tree1a22448012ce22795350d59a86f2fb2e40004623
parent3b06ac6707c196b5036fe013c460da86c9060085
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