Message ID | 1427988653-754-15-git-send-email-l.stach@pengutronix.de (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
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);