mirror of
https://github.com/eclipse-threadx/threadx.git
synced 2025-11-16 04:24:48 +00:00
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:
@@ -35,6 +35,10 @@
|
||||
/* DATE NAME DESCRIPTION */
|
||||
/* */
|
||||
/* 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) {
|
||||
/* Fatal error */
|
||||
*mtx = NULL;
|
||||
return;
|
||||
}
|
||||
|
||||
lock = &(xclib_locks[lcnt]);
|
||||
|
||||
Reference in New Issue
Block a user