diff options
author | Rob Austein <sra@hactrn.net> | 2016-11-01 12:17:44 -0400 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2016-11-01 12:17:44 -0400 |
commit | fd3a9b8f032d5a696d0c7e283fdd2f7f0771306e (patch) | |
tree | 543c358baf4e5afafff53691c4aab0c9043b5683 /stm-rtc.h | |
parent | 002f019f8c6db7e3e8a2f1517de7693878f975be (diff) |
Don't return from flash write calls until WIP flag clears.
Absence of this check created a nasty race condition in
sw/libhal/ks_flash.c, which didn't show up until we had test code
which attempted to delete a long series of keys in quick succession.
I'm not aware of any sane reason why we would ever want to skip this
check, so it's unconditional and applies to all of the SPI flash code,
not just the keystore flash code.
Diffstat (limited to 'stm-rtc.h')
0 files changed, 0 insertions, 0 deletions