efi_selftest: illegal cast to pointer in initrddump
On 32bit systems u64 cannot directly be cast to void *. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
This commit is contained in:
parent
9ff9f4b426
commit
fbc6ceae6f
1 changed files with 1 additions and 1 deletions
|
@ -272,7 +272,7 @@ static efi_status_t get_initrd(void **initrd, efi_uintn_t *initrd_size)
|
||||||
error(L"Out of memory\r\n");
|
error(L"Out of memory\r\n");
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
*initrd = (void *)buffer;
|
*initrd = (void *)(uintptr_t)buffer;
|
||||||
ret = load_file2_prot->load_file(load_file2_prot, dp, false,
|
ret = load_file2_prot->load_file(load_file2_prot, dp, false,
|
||||||
initrd_size, *initrd);
|
initrd_size, *initrd);
|
||||||
if (ret != EFI_SUCCESS) {
|
if (ret != EFI_SUCCESS) {
|
||||||
|
|
Loading…
Reference in a new issue