File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -66,8 +66,8 @@ void armada_gem_free_object(struct drm_gem_object *obj)
66
66
if (dobj -> obj .import_attach ) {
67
67
/* We only ever display imported data */
68
68
if (dobj -> sgt )
69
- dma_buf_unmap_attachment (dobj -> obj .import_attach ,
70
- dobj -> sgt , DMA_TO_DEVICE );
69
+ dma_buf_unmap_attachment_unlocked (dobj -> obj .import_attach ,
70
+ dobj -> sgt , DMA_TO_DEVICE );
71
71
drm_prime_gem_destroy (& dobj -> obj , NULL );
72
72
}
73
73
@@ -539,8 +539,8 @@ int armada_gem_map_import(struct armada_gem_object *dobj)
539
539
{
540
540
int ret ;
541
541
542
- dobj -> sgt = dma_buf_map_attachment (dobj -> obj .import_attach ,
543
- DMA_TO_DEVICE );
542
+ dobj -> sgt = dma_buf_map_attachment_unlocked (dobj -> obj .import_attach ,
543
+ DMA_TO_DEVICE );
544
544
if (IS_ERR (dobj -> sgt )) {
545
545
ret = PTR_ERR (dobj -> sgt );
546
546
dobj -> sgt = NULL ;
You can’t perform that action at this time.
0 commit comments