From d11ff5b9875690e133fb020b00422a1a3dd02d76 Mon Sep 17 00:00:00 2001 From: wangyikai Date: Fri, 17 Jan 2025 10:29:37 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90HDF=5FCORE=E3=80=91bugfix,=20SharedMem?= =?UTF-8?q?Queue=E5=8F=AF=E8=83=BD=E4=BC=9A=E5=AF=BC=E8=87=B4=E6=9C=80?= =?UTF-8?q?=E5=90=8E=E4=B8=80=E5=8C=85=E7=BC=93=E5=AD=98=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E6=97=A0=E6=B3=95=E5=86=99=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: wangyikai --- interfaces/inner_api/hdi/base/hdi_smq.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/interfaces/inner_api/hdi/base/hdi_smq.h b/interfaces/inner_api/hdi/base/hdi_smq.h index e10e62e6c..a5147e1cc 100644 --- a/interfaces/inner_api/hdi/base/hdi_smq.h +++ b/interfaces/inner_api/hdi/base/hdi_smq.h @@ -537,7 +537,7 @@ template int SharedMemQueue::WriteNonBlocking(const T *data, size_t count) { auto avalidWrite = GetAvalidWriteSize(); - if (count >= avalidWrite && meta_->GetType() == SmqType::SYNCED_SMQ) { + if (count > avalidWrite && meta_->GetType() == SmqType::SYNCED_SMQ) { // synced smq can not overflow write return -E2BIG; } -- Gitee