mirror of
https://github.com/openharmony/drivers_framework.git
synced 2026-08-26 18:17:07 -04:00
fix: repair CPPCrash
Signed-off-by: “guodongqi” <guodongqi2@huawei.com>
This commit is contained in:
@@ -105,6 +105,10 @@ static int DevmgrServiceLoadDevice(struct IDevmgrService *devMgrSvc, const char
|
||||
return HDF_FAILURE;
|
||||
}
|
||||
|
||||
if (hostClnt->hostService == NULL) {
|
||||
return HDF_FAILURE;
|
||||
}
|
||||
|
||||
return hostClnt->hostService->AddDevice(hostClnt->hostService, deviceInfo);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user