From: Inki Dae Date: Mon, 9 Jul 2012 06:42:16 +0000 (+0900) Subject: drm/exynos: fixed exception to page allocation failure X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=cb364e342d8ac2bac694ab7e09e7090c72346c5e;p=linux-beck.git drm/exynos: fixed exception to page allocation failure this patch corrects to deallocate the pages allocated already at alloc_page failure. Signed-off-by: Inki Dae Signed-off-by: Kyungmin Park --- diff --git a/drivers/gpu/drm/exynos/exynos_drm_gem.c b/drivers/gpu/drm/exynos/exynos_drm_gem.c index 2da6cdb1fa37..f9efde40c097 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_gem.c +++ b/drivers/gpu/drm/exynos/exynos_drm_gem.c @@ -118,7 +118,7 @@ struct page **exynos_gem_get_pages(struct drm_gem_object *obj, return pages; fail: - while (i--) + while (--i) __free_page(pages[i]); drm_free_large(pages);