drm/exynos: fix pages allocation size in lowlevel_buffer_allocate
authorYoungJun Cho <yj44.cho@samsung.com>
Wed, 3 Jul 2013 08:09:20 +0000 (17:09 +0900)
committerInki Dae <inki.dae@samsung.com>
Thu, 4 Jul 2013 06:55:37 +0000 (15:55 +0900)
commit42ac99a72041a3515bd2b205adb9a239b49c6741
tree0eb393d239fb8f914b583e40c2716c8217b341eb
parentaf51a5e7068826fe5016ab38149243bacc449233
drm/exynos: fix pages allocation size in lowlevel_buffer_allocate

When IOMMU is not supported, buf->pages has to be allocated to
assign the result of phys_to_page() which return type is struct
page *. So it is sufficient to allocate buf->pages with the size
of multiple struct page pointers.

Signed-off-by: YoungJun Cho <yj44.cho@samsung.com>
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
drivers/gpu/drm/exynos/exynos_drm_buf.c