summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorLei YU <mine260309@gmail.com>2018-04-03 15:14:49 +0800
committerVernon Mauery <vernon.mauery@linux.intel.com>2018-04-10 19:47:13 +0000
commit91875f7749c21f336fc02c957609cb8a24e940b6 (patch)
treeee462ebbb13b768ba02113eb322f99774633285b /scripts
parent65a17a77c25af2e8585bdec21cf004cfb5297ed0 (diff)
downloadphosphor-host-ipmid-91875f7749c21f336fc02c957609cb8a24e940b6.tar.gz
phosphor-host-ipmid-91875f7749c21f336fc02c957609cb8a24e940b6.zip
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>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud