From: SooChan Lim Date: Thu, 17 Jun 2021 01:02:08 +0000 (+0900) Subject: tbm_module: fix the wrong condition X-Git-Tag: submit/tizen/20210617.053259~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1fd3dc373828150f4a1423738db950b0e655cec9;p=platform%2Fcore%2Fuifw%2Flibtbm.git tbm_module: fix the wrong condition A fd has to be checked if it is less than 0. Change-Id: Ia71d5208060e4d1e6e6965c3f3848e0d77aaea6c --- diff --git a/src/tbm_module.c b/src/tbm_module.c index 140392a..a29b477 100644 --- a/src/tbm_module.c +++ b/src/tbm_module.c @@ -509,7 +509,7 @@ tbm_module_bufmgr_bind_native_display(tbm_module *module, void *native_display) case TBM_MODULE_TYPE_HAL_TBM: if (hal_tbm_backend_has_drm_device(module->hal_backend, &ret)) { int fd = tbm_drm_helper_get_fd(); // this must be the auth drm_fd.(master drm_fd); - if (fd < -1) { + if (fd < 0) { TBM_ERR("error: module(%p) native_display(%p)\n", module, native_display); return TBM_ERROR_INVALID_OPERATION; }