commit | 9c76a0acb0b1a0552ca732b1c62c777e7f1342df | [log] [tgz] |
---|---|---|
author | Lei YU <yulei.sh@bytedance.com> | Mon Mar 14 11:37:15 2022 +0800 |
committer | Lei YU <yulei.sh@bytedance.com> | Mon Mar 14 13:35:15 2022 +0800 |
tree | 193458988ba76df06070c4f01cfff11aa7c20d57 | |
parent | 88ba1f9ec712d82e8111952df0524bb460c2acb0 [diff] |
item_updater: Fix crash in updateUbootEnvVars() In 25773a7 there is a change in updateUbootEnvVars() to use versions.find(versionId)->second->path() as the flashId to update. However, the function may be called with an invalid versionId, e.g. if the BMC has only one activation for static layout, resetUbootEnvVars() will not find a valid `lowestPriorityVersion`, and it will pass an empty string to `updateUbootEnvVars()`. Fix the issue by adding a check and return if there is no such version found. Tested: Verify the BMC code update for static layout with one flash is OK. Signed-off-by: Lei YU <yulei.sh@bytedance.com> Change-Id: I4bf8240fefca3ae919024a61e45cfe3d29ed01e7
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
.