From 557506a4b9f30ee2d05e4610d73e4a52c71bd50e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=AB=E5=BF=B5?= Date: Mon, 30 Jun 2025 16:48:57 +0800 Subject: [PATCH 1/2] 1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 别念 --- interfaces/kits/hyperaio/src/hyperaio.cpp | 24 ++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/interfaces/kits/hyperaio/src/hyperaio.cpp b/interfaces/kits/hyperaio/src/hyperaio.cpp index 1f5dc006d..934018cf0 100644 --- a/interfaces/kits/hyperaio/src/hyperaio.cpp +++ b/interfaces/kits/hyperaio/src/hyperaio.cpp @@ -114,12 +114,20 @@ int32_t HyperAio::CtxInit(ProcessIoResultCallBack *callBack) return EOK; } +int32_t CheckConditionReady() { + +} int32_t HyperAio::StartOpenReqs(OpenReqs *req) { if (pImpl_ == nullptr) { return -EINVAL; } - if (req == nullptr || req->reqs == nullptr) { + if (req == nullptr) { + HILOGE("OpenReqs is null"); + return -EINVAL; + } + if (req->reqs == nullptr) { + HILOGE("OpenReqs->reqs is null"); return -EINVAL; } if (!initialized_.load()) { @@ -166,7 +174,12 @@ int32_t HyperAio::StartReadReqs(ReadReqs *req) if (pImpl_ == nullptr) { return -EINVAL; } - if (req == nullptr || req->reqs == nullptr) { + if (req == nullptr) { + HILOGE("ReadReqs is null"); + return -EINVAL; + } + if (req->reqs == nullptr) { + HILOGE("ReadReqs->reqs is null"); return -EINVAL; } if (!initialized_.load()) { @@ -212,7 +225,12 @@ int32_t HyperAio::StartCancelReqs(CancelReqs *req) if (pImpl_ == nullptr) { return -EINVAL; } - if (req == nullptr || req->reqs == nullptr) { + if (req == nullptr) { + HILOGE("CancelReqs is null"); + return -EINVAL; + } + if (req->reqs == nullptr) { + HILOGE("CancelReqs->reqs is null"); return -EINVAL; } if (!initialized_.load()) { -- Gitee From a557edbdf369e3d5ca3ee73e02a255c89dd49713 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=AB=E5=BF=B5?= Date: Mon, 30 Jun 2025 16:50:07 +0800 Subject: [PATCH 2/2] 1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 别念 --- interfaces/kits/hyperaio/src/hyperaio.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/interfaces/kits/hyperaio/src/hyperaio.cpp b/interfaces/kits/hyperaio/src/hyperaio.cpp index 934018cf0..2df9dc050 100644 --- a/interfaces/kits/hyperaio/src/hyperaio.cpp +++ b/interfaces/kits/hyperaio/src/hyperaio.cpp @@ -114,9 +114,6 @@ int32_t HyperAio::CtxInit(ProcessIoResultCallBack *callBack) return EOK; } -int32_t CheckConditionReady() { - -} int32_t HyperAio::StartOpenReqs(OpenReqs *req) { if (pImpl_ == nullptr) { -- Gitee