summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/exynos/exynos_drm_gem.c
diff options
context:
space:
mode:
authorInki Dae <inki.dae@samsung.com>2012-07-09 15:42:16 +0900
committerInki Dae <inki.dae@samsung.com>2012-07-27 11:13:57 +0900
commitcb364e342d8ac2bac694ab7e09e7090c72346c5e (patch)
tree25199436e9d4af187553ed1462c1173cccc81502 /drivers/gpu/drm/exynos/exynos_drm_gem.c
parentd73c1c995b916a08bfc2d3707afbd3fbf9747300 (diff)
downloadtalos-obmc-linux-cb364e342d8ac2bac694ab7e09e7090c72346c5e.tar.gz
talos-obmc-linux-cb364e342d8ac2bac694ab7e09e7090c72346c5e.zip
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 <inki.dae@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Diffstat (limited to 'drivers/gpu/drm/exynos/exynos_drm_gem.c')
-rw-r--r--drivers/gpu/drm/exynos/exynos_drm_gem.c2
1 files changed, 1 insertions, 1 deletions
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);
OpenPOWER on IntegriCloud