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

Gerd Hoffmann kraxel at redhat.com
Thu Nov 5 06:52:33 UTC 2020


  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



More information about the dri-devel mailing list