drm/exynos: fixed page align bug.
authorInki Dae <inki.dae@samsung.com>
Fri, 17 Aug 2012 06:24:03 +0000 (15:24 +0900)
committerInki Dae <inki.dae@samsung.com>
Thu, 13 Sep 2012 03:38:08 +0000 (12:38 +0900)
do not align in page unit at dumb creation. the align is done
by exynos_drm_gem_create() to be called commonly.

Signed-off-by: Inki Dae <inki.dae@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
drivers/gpu/drm/exynos/exynos_drm_gem.c

index da4e3ca219fa0a7ec8fe565ed4b24b3e793ce133..a38051c95ec4384176ddc5f8bd8937e4270c3fb6 100644 (file)
@@ -662,7 +662,7 @@ int exynos_drm_gem_dumb_create(struct drm_file *file_priv,
         */
 
        args->pitch = args->width * ((args->bpp + 7) / 8);
-       args->size = PAGE_ALIGN(args->pitch * args->height);
+       args->size = args->pitch * args->height;
 
        exynos_gem_obj = exynos_drm_gem_create(dev, args->flags, args->size);
        if (IS_ERR(exynos_gem_obj))