mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-15 08:30:02 +00:00
fix double-lock on rootkeys object
This commit is contained in:
parent
667470ba05
commit
3550cec14a
1 changed files with 4 additions and 1 deletions
|
|
@ -391,13 +391,16 @@ fn wrapped_main() -> ! {
|
|||
// check for backups after EC updates, but before we check for gateware updates
|
||||
let mut backup_time: Option<DateTime::<Utc>> = None;
|
||||
let mut restore_running = false;
|
||||
match keys.lock().unwrap().get_restore_header() {
|
||||
let restore_header = keys.lock().unwrap().get_restore_header();
|
||||
match restore_header {
|
||||
Ok(Some(header)) => {
|
||||
match header.op {
|
||||
BackupOp::Restore => {
|
||||
{ /* remove this check once the restore process for this case is complete */
|
||||
let backup_dna = u64::from_le_bytes(header.dna);
|
||||
if backup_dna != llio.soc_dna().unwrap() {
|
||||
log::info!("backup_dna is 0x{:x}", backup_dna);
|
||||
log::info!("reported dna is 0x{:x}", llio.soc_dna().unwrap());
|
||||
panic!("Backups to new devices not yet supported: add DNA re-encryption flow");
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue