mirror of
https://github.com/torvalds/linux.git
synced 2024-11-17 09:31:50 +00:00
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>
This commit is contained in:
parent
d73c1c995b
commit
cb364e342d
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user