From d9226c5f06b1271eb0a47d690c91955a23aeac56 Mon Sep 17 00:00:00 2001 From: yuanbo Date: Fri, 17 Sep 2021 14:43:50 +0800 Subject: [PATCH] fix devhost process execv fail issue Signed-off-by: yuanbo --- core/common/src/hdf_attribute.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/common/src/hdf_attribute.c b/core/common/src/hdf_attribute.c index 3234d52d6..af6022584 100644 --- a/core/common/src/hdf_attribute.c +++ b/core/common/src/hdf_attribute.c @@ -276,11 +276,10 @@ struct HdfSList *HdfAttributeManagerGetDeviceList(uint16_t hostId, const char *h deviceNode = deviceNode->sibling; continue; } - deviceNodeInfo->deviceId = deviceIdx; + deviceNodeInfo->deviceId = deviceIdx++; deviceNode = deviceNode->sibling; } device = device->sibling; - deviceIdx++; } if (HdfSListCount(deviceList) == 0) { OsalMemFree(deviceList); -- Gitee