The type efi_status_t is not compatible with the return type int.
Let efi_store_memory_map() return -EFAULT instead of a truncated EFI error
code.
Acked-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
putc(' ');
printhex2(ret);
puts(" No memory map\n");
- return ret;
+ return -EFAULT;
}
/*
* Since doing a malloc() may change the memory map and also we want to
if (!priv->memmap_desc) {
printhex2(ret);
puts(" No memory for memory descriptor\n");
- return ret;
+ return -EFAULT;
}
ret = boot->get_memory_map(&priv->memmap_size, priv->memmap_desc,
if (ret) {
printhex2(ret);
puts(" Can't get memory map\n");
- return ret;
+ return -EFAULT;
}
return 0;