]> git.dujemihanovic.xyz Git - u-boot.git/commit
efi: Correct the operation of efi_file_write()
authorSimon Glass <sjg@chromium.org>
Sat, 15 Sep 2018 06:51:00 +0000 (00:51 -0600)
committerAlexander Graf <agraf@suse.de>
Sun, 23 Sep 2018 19:55:30 +0000 (21:55 +0200)
commit2ae843f7323bf6ffa74771bcac8ecd5fa78d66ea
tree5b462f3bb7e456bc2e3829edb81171c17a2015e3
parent428aa0ca56aef4ca7facb503c4dba2de127c6046
efi: Correct the operation of efi_file_write()

We should not directly cast between pointers and addresses since it breaks
sandbox. Fix this and simplify the code in file_read().

Signed-off-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Alexander Graf <agraf@suse.de>
lib/efi_loader/efi_file.c