diff options
author | TeYuan Wang <kamewang@google.com> | 2022-12-23 17:27:24 +0800 |
---|---|---|
committer | Kame(TeYuan) Wang <kamewang@google.com> | 2022-12-23 11:07:48 +0000 |
commit | 755820efc09f8711065ff9afa9d97b4741fe80e1 (patch) | |
tree | c24e0736ab60662d75fcb3cf3a771a1db50b91c4 /bootctrl/BootControlShared.cpp | |
parent | dacdb1fb86d7c99abe125184646f04a05b4a7ff4 (diff) |
thermal: add sensor_status_check when reading the temperature
sensor_status_map will not be initilized when the
vendor.disable.thermal.control debug property is enabled,
so add a check to prevent crashing if someone access
sensor_status_map.
Bug: 254163925
Test: swithc vendor.disable.thermal.control and check no thermalHAL crash
Change-Id: I6014ccdb974c1620a41df8ae32c612ff861514ca
Diffstat (limited to 'bootctrl/BootControlShared.cpp')
0 files changed, 0 insertions, 0 deletions