commit | 9a44547ef3ccb02eb6a3dd4f4b5b01f2c5db7402 | [log] [tgz] |
---|---|---|
author | Wludzik, Jozef <jozef.wludzik@intel.com> | Wed Jun 24 12:11:09 2020 +0200 |
committer | Wludzik, Jozef <jozef.wludzik@intel.com> | Wed Jun 24 14:45:30 2020 +0200 |
tree | 679ee9ef6bc7e9c787687c811cf34634e25ffb3a | |
parent | 67601bdb4ed30a9f859eb2a9542dd3a973ea907e [diff] |
Fix segfault caused by accessing nullptr There is a corner cases where "sensors" map contains nullptr when CPU is not installed or base configuration is invalid. Now presence of shared_ptr is validated on every loop. Tested: - Successfully boot OpenBMC without any crash in adcsensor. Signed-off-by: Wludzik, Jozef <jozef.wludzik@intel.com> Change-Id: I267388c004fcbfcd5e3c14b77f95d31aa89f0cc8
dbus-sensors is a collection of sensor applications that provide the xyz.openbmc_project.Sensor collection of interfaces. They read sensor values from hwmon, d-bus, or direct driver access to provide readings. Some advance non-sensor features such as fan presence, pwm control, and automatic cpu detection (x86) are also supported.
runtime re-configurable from d-bus (entity-manager or the like)
isolated: each sensor type is isolated into its own daemon, so a bug in one sensor is unlikely to affect another, and single sensor modifications are possible
async single-threaded: uses sdbusplus/asio bindings
multiple data inputs: hwmon, d-bus, direct driver access