commit | cfb4b2099f840f75aebd4b8ce9a054aa2b62ad2a | [log] [tgz] |
---|---|---|
author | Lei YU <yulei.sh@bytedance.com> | Thu May 06 17:47:28 2021 +0800 |
committer | Lei YU <yulei.sh@bytedance.com> | Thu May 06 18:34:45 2021 +0800 |
tree | 27ac4d817a834ddb8f1e13921128f0bd929ba5c5 | |
parent | 6e9fb1d6ec428d1cc05c78b9b394b214b46c0364 [diff] |
item_updater: Fix crash on redundantPriority When the BIOS update is enabled, the activation of the BIOS does not have redundantPriority. After BIOS update, the code will have an activation without redundantPriority. In such case, the BMC update will fail due to the crash in freeSpace() that uses the redundantPriority. Fix it by checking if the redundantPriority is null or not, and skip the activations that has no redundantPriority. Tested: Verify the phosphor-image-updater does not crash on the above case. Signed-off-by: Lei YU <yulei.sh@bytedance.com> Change-Id: I92ac9e0f9f02067ceefd0011d01464e8bbd743a5
Phosphor BMC Code Management provides a set of system software management applications. More information can be found at Software Architecture
To build this package, do the following steps:
meson build
ninja -C build
To clean the repository run rm -r build
.