dma-buf: fix sanity check in dma_buf_export
Subsystems (2)
PATCH 1/1 dma-buf: fix sanity check in dma_buf_export
Commit 09ea0dfbf972 made map_atomic and map function pointers optional, but didn't adapt the sanity check in dma_buf_export. Fix that.
Note that the atomic map interface has been removed altogether meanwhile (commit f664a52695), therefore we have to remove the map check only.
Signed-off-by Gerd Hoffmann <[email protected]>
--- drivers/dma-buf/dma-buf.c | 1 - 1 file changed, 1 deletion(-)
drivers/dma-buf/dma-buf.c +0 -1
@@ -405,7 +405,6 @@ struct dma_buf *dma_buf_export(const struct dma_buf_export_info *exp_info) || !exp_info->ops->map_dma_buf || !exp_info->ops->unmap_dma_buf || !exp_info->ops->release - || !exp_info->ops->map || !exp_info->ops->mmap)) {return ERR_PTR (-EINVAL ); }
Signature · 6 lines
2.9.3 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 7 lines · Gerd Hoffmann
Commit
09ea0dfbf972mademap_atomicand map function pointers optional, but didn't adapt the sanity check indma_buf_export. Fix that.Note that the atomic map interface has been removed altogether meanwhile (commit
f664a52695), therefore we have to remove the map check only.Signed-off-by Gerd Hoffmann <[email protected]>
Chris Wilson just submitted the exact same patch ... -Daniel
Quoted 23 lines
--- drivers/dma-buf/dma-buf.c | 1 - 1 file changed, 1 deletion(-)drivers/dma-buf/dma-buf.c +0
-1@@ -405,7 +405,6 @@ struct dma_buf *dma_buf_export(const struct dma_buf_export_info *exp_info) || !exp_info->ops->map_dma_buf || !exp_info->ops->unmap_dma_buf || !exp_info->ops->release - || !exp_info->ops->map || !exp_info->ops->mmap)) {return ERR_PTR (-EINVAL ); }Signature · 6 lines
2.9.3 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Signature · 7 lines
Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel