File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -936,7 +936,7 @@ struct drm_gem_object *drm_gem_prime_import_dev(struct drm_device *dev,
936
936
937
937
get_dma_buf (dma_buf );
938
938
939
- sgt = dma_buf_map_attachment (attach , DMA_BIDIRECTIONAL );
939
+ sgt = dma_buf_map_attachment_unlocked (attach , DMA_BIDIRECTIONAL );
940
940
if (IS_ERR (sgt )) {
941
941
ret = PTR_ERR (sgt );
942
942
goto fail_detach ;
@@ -954,7 +954,7 @@ struct drm_gem_object *drm_gem_prime_import_dev(struct drm_device *dev,
954
954
return obj ;
955
955
956
956
fail_unmap :
957
- dma_buf_unmap_attachment (attach , sgt , DMA_BIDIRECTIONAL );
957
+ dma_buf_unmap_attachment_unlocked (attach , sgt , DMA_BIDIRECTIONAL );
958
958
fail_detach :
959
959
dma_buf_detach (dma_buf , attach );
960
960
dma_buf_put (dma_buf );
@@ -1052,7 +1052,7 @@ void drm_prime_gem_destroy(struct drm_gem_object *obj, struct sg_table *sg)
1052
1052
1053
1053
attach = obj -> import_attach ;
1054
1054
if (sg )
1055
- dma_buf_unmap_attachment (attach , sg , DMA_BIDIRECTIONAL );
1055
+ dma_buf_unmap_attachment_unlocked (attach , sg , DMA_BIDIRECTIONAL );
1056
1056
dma_buf = attach -> dmabuf ;
1057
1057
dma_buf_detach (attach -> dmabuf , attach );
1058
1058
/* remove the reference */
You can’t perform that action at this time.
0 commit comments