Add error handling in lock initialization in the Xtensa port (#340)

* Add error handling in lock initialization.

* Update release data and version.
This commit is contained in:
Xiuwen Cai
2023-12-28 13:17:58 +08:00
committed by GitHub
parent 9f3e35d3dc
commit 39f3c86c61

View File

@@ -35,6 +35,10 @@
/* DATE NAME DESCRIPTION */ /* DATE NAME DESCRIPTION */
/* */ /* */
/* 12-31-2020 Cadence Design Systems Initial Version 6.1.3 */ /* 12-31-2020 Cadence Design Systems Initial Version 6.1.3 */
/* 12-31-2023 Xiuwen Cai Modified comment(s), and */
/* added error handling in */
/* lock initialization, */
/* resulting in version 6.4.0 */
/* */ /* */
/**************************************************************************/ /**************************************************************************/
@@ -155,6 +159,8 @@ _Mtxinit (_Rmtx * mtx)
if (lcnt >= XT_NUM_CLIB_LOCKS) { if (lcnt >= XT_NUM_CLIB_LOCKS) {
/* Fatal error */ /* Fatal error */
*mtx = NULL;
return;
} }
lock = &(xclib_locks[lcnt]); lock = &(xclib_locks[lcnt]);