fix devhost process execv fail issue

Signed-off-by: yuanbo <yuanbo@huawei.com>
This commit is contained in:
yuanbo
2021-09-17 14:43:50 +08:00
parent 8256bcebb4
commit dfe3e24afc
+1 -2
View File
@@ -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);