mirror of
https://github.com/fail0verflow/switch-coreboot.git
synced 2025-05-04 01:39:18 -04:00
fix lar code to return 1 when the file is not found. (trivial)
Signed-off-by: Stefan Reinauer <stepan@coresystems.de> Acked-by: Stefan Reinauer <stepan@coresystems.de> git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@421 f3766cd6-281f-0410-b1cd-43a5c92072e9
This commit is contained in:
parent
0d458ab4fb
commit
f481c0f6cf
2 changed files with 2 additions and 2 deletions
|
@ -101,7 +101,7 @@ void stage1_main(u32 bist)
|
|||
// FIXME this should be defined in the VPD area
|
||||
// but NOT IN THE CODE.
|
||||
|
||||
archive.len=(CONFIG_LINUXBIOS_ROMSIZE_KB-16)*1024;
|
||||
archive.len=(CONFIG_LINUXBIOS_ROMSIZE_KB)*1024;
|
||||
archive.start=(void *)(0UL-(CONFIG_LINUXBIOS_ROMSIZE_KB*1024));
|
||||
|
||||
// FIXME check integrity
|
||||
|
|
|
@ -40,7 +40,7 @@ int find_file(struct mem_file *archive, char *filename, struct mem_file *result)
|
|||
archive->len);
|
||||
|
||||
for (walk = archive->start;
|
||||
walk < (char *)archive->start + archive->len - 1; walk += 16) {
|
||||
(walk - 1) < (char *)(archive->start + archive->len - 1 ); walk += 16) {
|
||||
if (strcmp(walk, MAGIC) != 0)
|
||||
continue;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue