]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
drm/exynos: fix gem buffer allocation type checking
authorInki Dae <inki.dae@samsung.com>
Thu, 27 Dec 2012 10:54:23 +0000 (19:54 +0900)
committerInki Dae <inki.dae@samsung.com>
Fri, 4 Jan 2013 06:54:34 +0000 (15:54 +0900)
This patch fixes gem buffer allocation type checking.
EXYNOS_BO_CONTIG has 0 so the checking should be fixed
to 'if (!(flags & EXYNOS_BO_NONCONTIG))'

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

index b7937a616e46a0adc834d5505f4073e2cf392059..57affae9568b22c1b4713fb0fe330a33ffe6ca01 100644 (file)
@@ -38,7 +38,7 @@ static int lowlevel_buffer_allocate(struct drm_device *dev,
         * region will be allocated else physically contiguous
         * as possible.
         */
-       if (flags & EXYNOS_BO_CONTIG)
+       if (!(flags & EXYNOS_BO_NONCONTIG))
                dma_set_attr(DMA_ATTR_FORCE_CONTIGUOUS, &buf->dma_attrs);
 
        /*