[COMMON] g2d: fix unsigned datatype
authorhyesoo.yu <hyesoo.yu@samsung.com>
Wed, 16 Aug 2017 02:08:13 +0000 (11:08 +0900)
committerCosmin Tanislav <demonsingur@gmail.com>
Mon, 22 Apr 2024 17:22:14 +0000 (20:22 +0300)
'get_unused_fd_flags' is stored in unsigned datatype,
so could not be handled on error.

Change-Id: I9447fd5fd7ccb9d6cdb782607197ad24360058fc
Signed-off-by: hyesoo.yu <hyesoo.yu@samsung.com>
drivers/gpu/exynos/g2d/g2d_fence.c

index 7469dd3e74ce672eb2e6541df2ac548ffa2bbbf9..d9f70e7ae79eb727a5bd0997ce521e54bb477360 100644 (file)
@@ -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;