On 27.05.18 16:47, Heinrich Schuchardt wrote:
> Handles are not used at runtime. They are freed by the firmware when the
> last protocol interface is uninstalled. So there is no reason to use EFI
> memory when creating handles.
> 
> Signed-off-by: Heinrich Schuchardt <[email protected]>

I agree that efi object structs are supposed to be opaque and thus we
can use any allocation mechanism we like.

What I also see is that efi_delete_handle() even calls free() on
objects, so spawning them from efi memory rather than malloc memory is
also just wrong.

In short, I think your patch is completely correct :).


Alex

_______________________________________________
U-Boot mailing list
[email protected]
https://lists.denx.de/listinfo/u-boot

Reply via email to