Close /dev/kfd after access check.

Cleanup dangling file handle.

Change-Id: I37bc42a2ffb7122f441cbf8a09c141d4396db928
This commit is contained in:
Sean Keely
2021-10-29 20:23:32 -05:00
parent b57c02d131
commit 7766360dd6
+1
Vedi File
@@ -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")