Skip to content

Commit

Permalink
drm/exynos: fixed exception to page allocation failure
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Inki Dae committed Jul 27, 2012
1 parent d73c1c9 commit cb364e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/exynos/exynos_drm_gem.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit cb364e3

Please sign in to comment.