aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorHeinrich Schuchardt <xypron.glpk@gmx.de>2018-07-22 08:06:57 +0200
committerAlexander Graf <agraf@suse.de>2018-08-20 14:47:07 +0200
commit54bfba2704f89290a68c27561098963d6bea0a92 (patch)
tree58527e82d14750ce535ff6d3c7751b2a63d391da /lib
parentbcfb0e22a8add1fcc99b63adfe2147802f2e1c77 (diff)
downloadu-boot-54bfba2704f89290a68c27561098963d6bea0a92.zip
u-boot-54bfba2704f89290a68c27561098963d6bea0a92.tar.gz
u-boot-54bfba2704f89290a68c27561098963d6bea0a92.tar.bz2
efi_selftest: correct block device unit test
The UEFI specification mandates that the create flag is only used in conjunction with both the read and the write flag. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'lib')
-rw-r--r--lib/efi_selftest/efi_selftest_block_device.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/efi_selftest/efi_selftest_block_device.c b/lib/efi_selftest/efi_selftest_block_device.c
index b82e405..1cd1304 100644
--- a/lib/efi_selftest/efi_selftest_block_device.c
+++ b/lib/efi_selftest/efi_selftest_block_device.c
@@ -415,7 +415,7 @@ static int execute(void)
#ifdef CONFIG_FAT_WRITE
/* Write file */
- ret = root->open(root, &file, (s16 *)L"u-boot.txt",
+ ret = root->open(root, &file, (s16 *)L"u-boot.txt", EFI_FILE_MODE_READ |
EFI_FILE_MODE_WRITE | EFI_FILE_MODE_CREATE, 0);
if (ret != EFI_SUCCESS) {
efi_st_error("Failed to open file\n");