From 4dc8563b0ecf054d63213ef242410aef5a2b9b8a Mon Sep 17 00:00:00 2001 From: y30015170 <1169998606@qq.com> Date: Mon, 18 Aug 2025 18:32:05 +0800 Subject: [PATCH] =?UTF-8?q?Description:=20=E4=BA=92=E6=96=A5=E9=94=81?= =?UTF-8?q?=E6=A8=A1=E5=9D=97=E6=95=B4=E6=95=B0=E6=BA=A2=E5=87=BA=E9=97=AE?= =?UTF-8?q?=E9=A2=98=20IssueNo:=20https://gitee.com/openharmony/kernel=5Fl?= =?UTF-8?q?iteos=5Fa/issues/ICMAMC=20Feature=20or=20Bugfix:=20Bugfix=09~?= =?UTF-8?q?=20Binary=20Source:=20No=20Signed-off-by:=20y30015170=20<116999?= =?UTF-8?q?8606@qq.com>?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kernel/base/ipc/los_mux.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/kernel/base/ipc/los_mux.c b/kernel/base/ipc/los_mux.c index fa4a67b8..2d9df33c 100644 --- a/kernel/base/ipc/los_mux.c +++ b/kernel/base/ipc/los_mux.c @@ -309,7 +309,9 @@ STATIC UINT32 OsMuxPendOp(LosTaskCB *runTask, LosMux *mutex, UINT32 timeout) } if (((LosTaskCB *)mutex->owner == runTask) && (mutex->attr.type == LOS_MUX_RECURSIVE)) { - mutex->muxCount++; + if (mutex->muxCount < 0xFFFF) { + mutex->muxCount++; + } return LOS_OK; } -- Gitee