mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 14:55:24 +08:00
fix seg fault arising when execute zello_sysman firmware
Seg fault is coming when execute zello_sysman firmware without any argument. This change fixes it. Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
1d9bb9b214
commit
7bec5d5d3b
@@ -1100,7 +1100,9 @@ int main(int argc, char *argv[]) {
|
||||
break;
|
||||
case 'i': {
|
||||
std::string filePathFirmware;
|
||||
filePathFirmware = optarg;
|
||||
if (optarg != nullptr) {
|
||||
filePathFirmware = optarg;
|
||||
}
|
||||
std::for_each(devices.begin(), devices.end(), [&](auto device) {
|
||||
testSysmanFirmware(device, filePathFirmware);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user