1
0
mirror of https://github.com/djhackersdev/bemanitools.git synced 2025-02-25 22:28:11 +01:00

fix(nvgpu): Missing error handling not returning (#333)

If fetching the configuration fails, don’t continue with
processing any non-existing data.
This commit is contained in:
icex2 2025-02-19 19:41:06 +01:00 committed by GitHub
parent 366f0090a9
commit 9a7285bb91
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -666,7 +666,9 @@ static bool _display_config_print(const nv_api_t *nv_api, NvU32 display_id)
assert(nv_api);
_display_config_get(nv_api, &displayconfig_path_info);
if (!_display_config_get(nv_api, &displayconfig_path_info)) {
return false;
}
if (display_id != 0) {
printfln_err("Applying display ID filter: %lX", display_id);