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>
1 parent 99c447f commit 6eb75a1a2febdf089c2a432dc46c94a0da16520d
@Masahiro Yamada Masahiro Yamada authored on 9 Jul 2020
Showing 1 changed file
View
drivers/io/io_fip.c