drivers/intel/fsp2_0/logo.c: Correct check for logo_size
The check to validate if the logo file was loaded correctly was incorrect. Now check the actual logo size. BUG=N/A TEST=build Change-Id: Ib3a808dd831986e8347512892ee88983d376d34c Signed-off-by: Wim Vervoorn <wvervoorn@eltan.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/38124 Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Nico Huber <nico.h@gmx.de> Reviewed-by: Frans Hendriks <fhendriks@eltan.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
90a9db537b
commit
9f363fc85a
|
@ -26,7 +26,7 @@ const struct cbmem_entry *fsp_load_logo(UINT32 *logo_ptr, UINT32 *logo_size)
|
|||
if (logo_buffer) {
|
||||
*logo_size = cbfs_boot_load_file("logo.bmp", (void *)logo_buffer,
|
||||
1 * MiB, CBFS_TYPE_RAW);
|
||||
if (logo_size)
|
||||
if (*logo_size)
|
||||
*logo_ptr = (UINT32)logo_buffer;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue