Close /dev/kfd after access check.

Cleanup dangling file handle.

Change-Id: I37bc42a2ffb7122f441cbf8a09c141d4396db928


[ROCm/rocminfo commit: 7766360dd6]
Этот коммит содержится в:
Sean Keely
2021-10-29 20:23:32 -05:00
родитель 2328e07883
Коммит 512dee81c5
+1
Просмотреть файл
@@ -1044,6 +1044,7 @@ int CheckInitialState(void) {
} else {
printf("%sROCk module is loaded%s\n", COL_WHT, COL_RESET);
}
pclose(fd);
// Check if user belongs to the group for /dev/kfd (e.g. "video" or
// "render")