Re: [PATCH] drm/virtio: use kvmalloc for large allocations

From: Gerd Hoffmann
Date: Thu Nov 05 2020 - 01:52:49 EST


Hi,

> - *ents = kmalloc_array(*nents, sizeof(struct virtio_gpu_mem_entry),
> - GFP_KERNEL);
> + *ents = kvmalloc_array(*nents,
> + sizeof(struct virtio_gpu_mem_entry),
> + GFP_KERNEL);

Shouldn't that be balanced with a kvfree() elsewhere?

take care,
Gerd