From 5b5afafa8273287b6dcce149dcd1125445f929d0 Mon Sep 17 00:00:00 2001 From: Changyeon Lee Date: Tue, 11 Oct 2016 11:39:44 +0900 Subject: [PATCH] fixed export_fd error return value Change-Id: I08d8061193dd88c7fe37fe0cf62d6d92f8b06db0 --- src/tbm_bufmgr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tbm_bufmgr.c b/src/tbm_bufmgr.c index c26bf69..0163482 100644 --- a/src/tbm_bufmgr.c +++ b/src/tbm_bufmgr.c @@ -1062,8 +1062,8 @@ tbm_bo_export_fd(tbm_bo bo) _tbm_bufmgr_mutex_lock(); - TBM_BUFMGR_RETURN_VAL_IF_FAIL(TBM_BUFMGR_IS_VALID(gBufMgr), 0); - TBM_BUFMGR_RETURN_VAL_IF_FAIL(_tbm_bo_is_valid(bo), 0); + TBM_BUFMGR_RETURN_VAL_IF_FAIL(TBM_BUFMGR_IS_VALID(gBufMgr), -1); + TBM_BUFMGR_RETURN_VAL_IF_FAIL(_tbm_bo_is_valid(bo), -1); bufmgr = gBufMgr; -- 2.7.4