From 45501651d9eb1c8045701a92c6d172a739b47215 Mon Sep 17 00:00:00 2001 From: "hyesoo.yu" Date: Wed, 16 Aug 2017 11:08:13 +0900 Subject: [PATCH] [COMMON] g2d: fix unsigned datatype 'get_unused_fd_flags' is stored in unsigned datatype, so could not be handled on error. Change-Id: I9447fd5fd7ccb9d6cdb782607197ad24360058fc Signed-off-by: hyesoo.yu --- drivers/gpu/exynos/g2d/g2d_fence.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/exynos/g2d/g2d_fence.c b/drivers/gpu/exynos/g2d/g2d_fence.c index 7469dd3e74ce..d9f70e7ae79e 100644 --- a/drivers/gpu/exynos/g2d/g2d_fence.c +++ b/drivers/gpu/exynos/g2d/g2d_fence.c @@ -147,7 +147,7 @@ struct sync_file *g2d_create_release_fence(struct g2d_device *g2d_dev, { struct dma_fence *fence; struct sync_file *file; - u32 release_fences[G2D_MAX_IMAGES + 1]; + s32 release_fences[G2D_MAX_IMAGES + 1]; unsigned int i; int ret = 0; -- 2.20.1