]> git.ipfire.org Git - thirdparty/linux.git/blobdiff - drivers/dma-buf/dma-buf.c
Merge tag 'drm-next-2020-06-02' of git://anongit.freedesktop.org/drm/drm
[thirdparty/linux.git] / drivers / dma-buf / dma-buf.c
index 07df88f2e3057e0c9def11f24b3d430823d30350..01ce125f8e8d8a864b82657f095923da4cfa2715 100644 (file)
@@ -691,6 +691,8 @@ dma_buf_dynamic_attach(struct dma_buf *dmabuf, struct device *dev,
 
        attach->dev = dev;
        attach->dmabuf = dmabuf;
+       if (importer_ops)
+               attach->peer2peer = importer_ops->allow_peer2peer;
        attach->importer_ops = importer_ops;
        attach->importer_priv = importer_priv;