drm/exynos: g2d: fix memory leak to userptr

This patch releases a vma object when cleaning up userptr resources.
A new vma object was allocated and copied when getting userptr pages
so the new vma object should be freed properly if the userptr pages
aren't used anymore.

Signed-off-by: Inki Dae <inki.dae@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>

authored by

Inki Dae and committed by
Dave Airlie
c3bddbda 27946e97

+2
+2
drivers/gpu/drm/exynos/exynos_drm_g2d.c
··· 383 383 g2d_userptr->npages, 384 384 g2d_userptr->vma); 385 385 386 + exynos_gem_put_vma(g2d_userptr->vma); 387 + 386 388 if (!g2d_userptr->out_of_list) 387 389 list_del_init(&g2d_userptr->list); 388 390