ad3b7d9f0d
If the amdsmi is fail to read ECC counter from sysfs file, it still assumes the data is read into vector, which causes crash. Add the check to make sure the data is read into the vector. Change-Id: Ia24331ee6e75408120248b0ed7bc58581a2f23ad