From: Russell King <rmk+kernel@xxxxxxxxxxxxxxxx> We need to call drm_prime_gem_destroy() to properly clean up imported dmabufs when their associated GEM object is deleted, otherwise we drop a refcount on them, preventing them from being cleaned up. Signed-off-by: Russell King <rmk+kernel@xxxxxxxxxxxxxxxx> --- drivers/staging/etnaviv/etnaviv_gem.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/staging/etnaviv/etnaviv_gem.c b/drivers/staging/etnaviv/etnaviv_gem.c index 42149a2b7404..f98d5ee43853 100644 --- a/drivers/staging/etnaviv/etnaviv_gem.c +++ b/drivers/staging/etnaviv/etnaviv_gem.c @@ -519,6 +519,7 @@ static void etnaviv_free_obj(struct drm_gem_object *obj) if (etnaviv_obj->pages) drm_free_large(etnaviv_obj->pages); + drm_prime_gem_destroy(obj, etnaviv_obj->sgt); } else { if (etnaviv_obj->vaddr) vunmap(etnaviv_obj->vaddr); -- 2.1.4 _______________________________________________ dri-devel mailing list dri-devel@xxxxxxxxxxxxxxxxxxxxx http://lists.freedesktop.org/mailman/listinfo/dri-devel