[PATCH v9 1/5] RDMA/umem: Support importing dma-buf as user memory region
Jason Gunthorpe
jgg at ziepe.ca
Tue Nov 10 00:06:21 UTC 2020
On Mon, Nov 09, 2020 at 11:22:57AM -0800, Jianxin Xiong wrote:
> + page_size = ib_umem_find_best_pgsz(&umem_dmabuf->umem, PAGE_SIZE,
> + umem_dmabuf->umem.iova);
> +
> + if (WARN_ON(cur != end || page_size != PAGE_SIZE)) {
> + ib_umem_dmabuf_unmap_pages(umem_dmabuf);
> + return -EINVAL;
> + }
This is not a warn_on situation, users can trigger this
Jason
More information about the dri-devel
mailing list