afd16e82953306ff52459705b06513410010bdc4
When it fails to open sysfs file, it may crash. Modify the condition
to check the file descriptor after open the file.
Change-Id: I2acdc55f8194a2d734db20d16e1660a20ba09574
[ROCm/amdsmi commit: f19da1bb2c]
Languages
C++
67.5%
C
20.6%
Python
6.6%
CMake
3.4%
Shell
0.6%
دیگر
1.1%