Searched hist:"0 fe02294" (Results 1 – 1 of 1) sorted by relevance
/openbmc/dbus-sensors/src/ |
H A D | NVMeBasicContext.cpp | 0fe02294 Thu Jul 21 01:37:39 CDT 2022 chaul.ampere <chaul@amperecomputing.com> NVMeBasicContext: Catch FileHandle out-of-range exception
In execBasicQuery, when the i2c bus path of the nvme sensor does not exist, it still does file handling and causes FileHandle class to throw out-of-range exception and terminate the service. This leads to coredump for the system which is undesirable.
This commit adds a try catch to this action of handle i2c bus path, which will log an error message and return when it fails to open the i2c bus path.
Signed-off-by: chaul.ampere <chaul@amperecomputing.com> Change-Id: Ice1d363a6149607bd149b89f70f2a23812df999d
|