commit | 91875f7749c21f336fc02c957609cb8a24e940b6 | [log] [tgz] |
---|---|---|
author | Lei YU <mine260309@gmail.com> | Tue Apr 03 15:14:49 2018 +0800 |
committer | Vernon Mauery <vernon.mauery@linux.intel.com> | Tue Apr 10 19:47:13 2018 +0000 |
tree | ee462ebbb13b768ba02113eb322f99774633285b | |
parent | 65a17a77c25af2e8585bdec21cf004cfb5297ed0 [diff] |
Handle sensors that can not be found in SystemManager When a sensor id is not managed in yaml the code tries to get it from legacy SystemManager; And when the sensor id can not be found in SystemManager, it returns empty path, and cause segment fault. This commit makes it return -EINVAL when path is empty, and thus the code will handle this case properly without crash. Resolves openbmc/openbmc#3062 Tested: Boot host without ipmid crash on Romulus. Change-Id: I4240b9be54824543b5e795e898330aeb02c5eb90 Signed-off-by: Lei YU <mine260309@gmail.com>
To build this package, do the following steps:
1. ./bootstrap.sh 2. ./configure ${CONFIGURE_FLAGS} 3. make
To clean the repository run ./bootstrap.sh clean
.