[SWDEV-511011] version command fails when driver isn't loaded (#123)

Signed-off-by: Deepak Mewar <deepak.mewar@amd.com>

Change-Id: Ibe77c904-1a5c-4361-8fad-291a203c6755

[ROCm/amdsmi commit: 83c88f26d1]
This commit is contained in:
Mewar, Deepak authored and GitHub committed 2025-02-26 03:13:22 -06:00
1 parent d2116cf24e
commit ac7bfb4849
2 files changed
+24 -2

No files matched your search

-2
View File
@@ -2952,8 +2952,6 @@ amdsmi_status_t amdsmi_get_gpu_topo_numa_affinity(
}
amdsmi_status_t amdsmi_get_lib_version(amdsmi_version_t *version) {
AMDSMI_CHECK_INIT();
if (version == nullptr)
return AMDSMI_STATUS_INVAL;