Message ID | 20230529223935.2672495-4-dmitry.osipenko@collabora.com |
---|---|
State | Accepted |
Commit | 42850c9aadfe56fa640b4b77bee4b3c3dab0d583 |
Headers | show |
Series | Move dma-buf mmap() reservation locking down to exporters | expand |
diff --git a/drivers/dma-buf/udmabuf.c b/drivers/dma-buf/udmabuf.c index 740d6e426ee9..277f1afa9552 100644 --- a/drivers/dma-buf/udmabuf.c +++ b/drivers/dma-buf/udmabuf.c @@ -52,8 +52,6 @@ static int mmap_udmabuf(struct dma_buf *buf, struct vm_area_struct *vma) { struct udmabuf *ubuf = buf->priv; - dma_resv_assert_held(buf->resv); - if ((vma->vm_flags & (VM_SHARED | VM_MAYSHARE)) == 0) return -EINVAL;