提交 cb364e34 编写于 作者: I Inki Dae

drm/exynos: fixed exception to page allocation failure

this patch corrects to deallocate the pages allocated already
at alloc_page failure.
Signed-off-by: NInki Dae <inki.dae@samsung.com>
Signed-off-by: NKyungmin Park <kyungmin.park@samsung.com>
上级 d73c1c99
...@@ -118,7 +118,7 @@ struct page **exynos_gem_get_pages(struct drm_gem_object *obj, ...@@ -118,7 +118,7 @@ struct page **exynos_gem_get_pages(struct drm_gem_object *obj,
return pages; return pages;
fail: fail:
while (i--) while (--i)
__free_page(pages[i]); __free_page(pages[i]);
drm_free_large(pages); drm_free_large(pages);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册