From: Junkyeong Kim Date: Mon, 7 Mar 2016 11:29:49 +0000 (+0900) Subject: fix svace error X-Git-Tag: submit/tizen/20160307.115029^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0239ad92b2d92c7e551f10ece2b96eb39b56f3b1;p=platform%2Fadaptation%2Fsamsung_exynos%2Flibtbm-exynos.git fix svace error Change-Id: Ib6cdfe47453011614f1a6002decdcc2cc2979fbe Signed-off-by: Junkyeong Kim --- diff --git a/src/tbm_bufmgr_exynos.c b/src/tbm_bufmgr_exynos.c index a2093df..bcea640 100644 --- a/src/tbm_bufmgr_exynos.c +++ b/src/tbm_bufmgr_exynos.c @@ -695,6 +695,7 @@ _get_render_node(void) TBM_EXYNOS_LOG("fstat() failed %s.\n"); udev_device_unref(drm_device); udev_unref(udev); + close(fd); return -1; } @@ -876,7 +877,7 @@ tbm_exynos_bo_alloc(tbm_bo bo, int size, int flags) struct drm_exynos_gem_create arg = {0, }; - arg.size = size; + arg.size = (uint64_t)size; arg.flags = exynos_flags; if (drmCommandWriteRead(bufmgr_exynos->fd, DRM_EXYNOS_GEM_CREATE, &arg, sizeof(arg))) {