tbm_bufmgr: set TBM_ERROR_INVALID_PARAMETER 97/260997/1
authorSooChan Lim <sc1.lim@samsung.com>
Thu, 8 Jul 2021 06:55:31 +0000 (15:55 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Thu, 8 Jul 2021 06:55:31 +0000 (15:55 +0900)
when the parameter is not vaild.

Change-Id: I58e2ca583e4ab868f838a1a3bbb85a6c50b82907

src/tbm_bufmgr.c

index a084cbf..5e5f90f 100644 (file)
@@ -850,6 +850,7 @@ tbm_bufmgr_set_bo_lock_type(tbm_bufmgr bufmgr, tbm_bufmgr_bo_lock_type bo_lock_t
        return 1;
 
 failed:
+       _tbm_set_last_result(TBM_ERROR_INVALID_PARAMETER);
        _tbm_bufmgr_mutex_unlock();
        pthread_mutex_unlock(&gLock);