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

Commit 1dcfe238 authored by Inki Dae's avatar Inki Dae
Browse files

drm/exynos: fix gem buffer allocation type checking



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: default avatarInki Dae <inki.dae@samsung.com>
Signed-off-by: default avatarKyungmin Park <kyungmin.park@samsung.com>
parent 13a32eb0
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -38,7 +38,7 @@ static int lowlevel_buffer_allocate(struct drm_device *dev,
	 * region will be allocated else physically contiguous
	 * region will be allocated else physically contiguous
	 * as possible.
	 * as possible.
	 */
	 */
	if (flags & EXYNOS_BO_CONTIG)
	if (!(flags & EXYNOS_BO_NONCONTIG))
		dma_set_attr(DMA_ATTR_FORCE_CONTIGUOUS, &buf->dma_attrs);
		dma_set_attr(DMA_ATTR_FORCE_CONTIGUOUS, &buf->dma_attrs);


	/*
	/*