From 12de8f8f3832fc0ff1556b45e73c4e24bfdf62bd Mon Sep 17 00:00:00 2001 From: wangyikai Date: Fri, 15 Nov 2024 17:42:44 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90hdf=5Fcore=E3=80=91hidumper=E5=91=BD?= =?UTF-8?q?=E4=BB=A4=E5=8D=A1=E6=AD=BB=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: wangyikai --- adapter/uhdf2/host/src/devhost_dump.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/adapter/uhdf2/host/src/devhost_dump.c b/adapter/uhdf2/host/src/devhost_dump.c index 6f7edd24b..7c0eee5d9 100644 --- a/adapter/uhdf2/host/src/devhost_dump.c +++ b/adapter/uhdf2/host/src/devhost_dump.c @@ -13,6 +13,7 @@ * limitations under the License. */ +#include #include "devhost_dump.h" #include "devhost_dump_reg.h" #include "hdf_base.h" @@ -132,10 +133,12 @@ static void DevHostDumpIpc(struct HdfSBuf *data) const char *dumpCmd = HdfSbufReadString(data); if (dumpCmd == NULL) { HDF_LOGE("ipc dumpCmd is NULL"); + close(fd); return; } HdfDumpIpcStat(fd, dumpCmd); + close(fd); return; } -- Gitee