summaryrefslogtreecommitdiff
path: root/common/action_processor.cc
diff options
context:
space:
mode:
authorAmin Hassani <ahassani@chromium.org>2019-01-10 17:30:38 -0800
committerchrome-bot <chrome-bot@chromium.org>2019-01-13 13:52:16 -0800
commitef13c92c549fee1a73118c32315e4472a5c4ffa3 (patch)
treeb87e66d10885b7a9c5289230f0d984e57cfc830b /common/action_processor.cc
parentef1af2773e238de982d98490d8542668f6499ac5 (diff)
update_engine: Initialize kernel_max_rollforward to infinity on init
Currently the value of kernel_max_rollforward is set only after a successful update check, but if the update is not successful or there was never an explicit update check (test devices or bring up devices), this value is not set and it can case incorrect firmware behavior. This CL initializes the value to infinity, if the device is detected to be a consumer device, on update_engine initialization. BUG=chromium:900002 TEST=unittests TEST=changed the value of kernel_max_rollforward and restart update_engine, the value changed to infinity. Change-Id: I1a2c905b5f5d5c10e71d055e31896f2838320fc0 Reviewed-on: https://chromium-review.googlesource.com/1405456 Commit-Ready: ChromeOS CL Exonerator Bot <chromiumos-cl-exonerator@appspot.gserviceaccount.com> Tested-by: Amin Hassani <ahassani@chromium.org> Reviewed-by: Zentaro Kavanagh <zentaro@chromium.org> Reviewed-by: Julius Werner <jwerner@chromium.org> Reviewed-by: Sen Jiang <senj@chromium.org>
Diffstat (limited to 'common/action_processor.cc')
0 files changed, 0 insertions, 0 deletions