diff options
author | Inki Dae <inki.dae@samsung.com> | 2012-07-09 08:42:16 +0200 |
---|---|---|
committer | Inki Dae <inki.dae@samsung.com> | 2012-07-27 04:13:57 +0200 |
commit | cb364e342d8ac2bac694ab7e09e7090c72346c5e (patch) | |
tree | 25199436e9d4af187553ed1462c1173cccc81502 /drivers/gpu | |
parent | drm/exynos: use __free_page() to deallocate memory (diff) | |
download | linux-cb364e342d8ac2bac694ab7e09e7090c72346c5e.tar.xz 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')
-rw-r--r-- | drivers/gpu/drm/exynos/exynos_drm_gem.c | 2 |
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); |