-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tegra-bootinfo: fix --initialize and --force-initialize handling
With the split of the bootinfo low-level code into a library, part of the initialization logic got slightly mangled. For the case where initialization is requested and we find no valid bootinfo blocks, set the 'current' index to 0 after zeroing out both blocks, rather than leaving it at -1 (which triggers a spurious error). For the force-init case, add a BOOTINFO_O_FORCE_INIT flag to bootinfo_open(). When present, initialization is done even if we find a valid bootinfo block. Signed-off-by: Matt Madison <[email protected]>
- Loading branch information
Showing
3 changed files
with
11 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters