aboutsummaryrefslogtreecommitdiff
path: root/drivers/io
diff options
context:
space:
mode:
authorManish Pandey <manish.pandey2@arm.com>2020-07-21 21:41:51 +0000
committerTrustedFirmware Code Review <review@review.trustedfirmware.org>2020-07-21 21:41:51 +0000
commitf15c59d7ac8b24d342cd20523388dceba9fabbaa (patch)
treefac1c2bd825a8a934cbd09cdded3e4c69a69c6f1 /drivers/io
parentf7bfed693fff8a44ef303ee7aa6f4fdaea87cfb9 (diff)
parent6eb75a1a2febdf089c2a432dc46c94a0da16520d (diff)
downloadarm-trusted-firmware-f15c59d7ac8b24d342cd20523388dceba9fabbaa.tar.gz
Merge "io_fip: return -ENFILE when a file is already open" into integration
Diffstat (limited to 'drivers/io')
-rw-r--r--drivers/io/io_fip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/io/io_fip.c b/drivers/io/io_fip.c
index c11ef115a..6e152959f 100644
--- a/drivers/io/io_fip.c
+++ b/drivers/io/io_fip.c
@@ -302,7 +302,7 @@ static int fip_file_open(io_dev_info_t *dev_info, const uintptr_t spec,
*/
if (current_fip_file.entry.offset_address != 0U) {
WARN("fip_file_open : Only one open file at a time.\n");
- return -ENOMEM;
+ return -ENFILE;
}
/* Attempt to access the FIP image */