commit | 1d57f686a359d9a334ad856512049e55728ec57c | [log] [tgz] |
---|---|---|
author | Paul Lawrence <paullawrence@google.com> | Thu Aug 22 09:51:18 2019 -0700 |
committer | Paul Lawrence <paullawrence@google.com> | Thu Aug 22 09:55:32 2019 -0700 |
tree | 949c2d5fedcf9d313b1127cc005dbed5f5bf23c5 | |
parent | 5bcfb5bf45c570e6c956bf9243fa38efae5c538f [diff] |
Fix race condition is commitCheckpoint If cp_commitCheckpoint is called twice at the same time, the second call to setBowState will fail. Add lock to remove possibility, and protect all uses of isCheckpointing Bug: 138952436 Test: Boots after flashing in checkpoint mode Change-Id: I131298adc506c3c176774d15e642b13d5f991087