mirror of
https://github.com/openharmony/drivers_framework.git
synced 2026-07-20 19:27:49 -04:00
fix devhost process execv fail issue
Signed-off-by: yuanbo <yuanbo@huawei.com>
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user