]> git.baikalelectronics.ru Git - kernel.git/commit
drm/exynos: g2d: fix memory leak to userptr
authorInki Dae <inki.dae@samsung.com>
Thu, 21 Nov 2013 03:09:51 +0000 (12:09 +0900)
committerDave Airlie <airlied@redhat.com>
Thu, 21 Nov 2013 08:55:08 +0000 (18:55 +1000)
commita87e184a44d45bbdd9cb92410cd0fac78e0cf75c
treeaa140be3e7f14fa47ae84ccb955187d631ae8f09
parent411ba98e1554fed07fb8174769d69c639d062618
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>
drivers/gpu/drm/exynos/exynos_drm_g2d.c