Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cb364e34 authored by Inki Dae's avatar Inki Dae
Browse files

drm/exynos: fixed exception to page allocation failure



this patch corrects to deallocate the pages allocated already
at alloc_page failure.

Signed-off-by: default avatarInki Dae <inki.dae@samsung.com>
Signed-off-by: default avatarKyungmin Park <kyungmin.park@samsung.com>
parent d73c1c99
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);