diff options
-rw-r--r-- | drivers/gpu/drm/armada/armada_gem.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/armada/armada_gem.c b/drivers/gpu/drm/armada/armada_gem.c index adc7c2da75bb..887816f43476 100644 --- a/drivers/gpu/drm/armada/armada_gem.c +++ b/drivers/gpu/drm/armada/armada_gem.c | |||
@@ -558,7 +558,6 @@ armada_gem_prime_import(struct drm_device *dev, struct dma_buf *buf) | |||
558 | * refcount on the gem object itself. | 558 | * refcount on the gem object itself. |
559 | */ | 559 | */ |
560 | drm_gem_object_reference(obj); | 560 | drm_gem_object_reference(obj); |
561 | dma_buf_put(buf); | ||
562 | return obj; | 561 | return obj; |
563 | } | 562 | } |
564 | } | 563 | } |
@@ -574,6 +573,7 @@ armada_gem_prime_import(struct drm_device *dev, struct dma_buf *buf) | |||
574 | } | 573 | } |
575 | 574 | ||
576 | dobj->obj.import_attach = attach; | 575 | dobj->obj.import_attach = attach; |
576 | get_dma_buf(buf); | ||
577 | 577 | ||
578 | /* | 578 | /* |
579 | * Don't call dma_buf_map_attachment() here - it maps the | 579 | * Don't call dma_buf_map_attachment() here - it maps the |