Skip to content

Commit

Permalink
kernel: process loading: fix ProcessBinary error
Browse files Browse the repository at this point in the history
If the loading a process binary fails we need to return the remaining
flash to look for the next app.
  • Loading branch information
bradjc committed Mar 5, 2024
1 parent 9fdf097 commit eb75ed0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/src/process_loading.rs
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ fn discover_process_binary(
.ok_or((flash, ProcessBinaryError::NotEnoughFlash))?;

let pb = ProcessBinary::create(app_flash, header_length as usize, version, true)
.map_err(|e| (flash, e))?;
.map_err(|e| (remaining_flash, e))?;

Ok((remaining_flash, pb))
}
Expand Down

0 comments on commit eb75ed0

Please sign in to comment.