diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2020-07-09 23:05:45 +0900 |
---|---|---|
committer | Masahiro Yamada <yamada.masahiro@socionext.com> | 2020-07-11 15:24:13 +0900 |
commit | 6eb75a1a2febdf089c2a432dc46c94a0da16520d (patch) | |
tree | 225b50c1d15d1832d629a5ed060b19fa7e3c112e /drivers/io/io_fip.c | |
parent | 99c447f4406c8ae66b6cab2341ef0c8e8d9751d2 (diff) | |
download | platform_external_arm-trusted-firmware-6eb75a1a2febdf089c2a432dc46c94a0da16520d.tar.gz platform_external_arm-trusted-firmware-6eb75a1a2febdf089c2a432dc46c94a0da16520d.tar.bz2 platform_external_arm-trusted-firmware-6eb75a1a2febdf089c2a432dc46c94a0da16520d.zip |
io_fip: return -ENFILE when a file is already open
The cause of failure is not memory shortage.
The comment for ENFILE in include/lib/libc/errno.h
/* Too many open files in system */
... is a better match to the warning message here.
Change-Id: I45a1740995d464edd8b3e32b93f1f92ba17e5874
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Diffstat (limited to 'drivers/io/io_fip.c')
-rw-r--r-- | drivers/io/io_fip.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/io/io_fip.c b/drivers/io/io_fip.c index 02f85d603..7aa717da8 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_file.entry.offset_address != 0) { WARN("fip_file_open : Only one open file at a time.\n"); - return -ENOMEM; + return -ENFILE; } /* Attempt to access the FIP image */ |