hostfs_open:return errno from host
Summary: Returns the error code returned directly by the host to avoid conversion to EBADF Signed-off-by: chenrun1 <chenrun1@xiaomi.com>
This commit is contained in:
parent
450b47fbb0
commit
cf66a1d5ce
1 changed files with 1 additions and 1 deletions
|
|
@ -296,7 +296,7 @@ static int hostfs_open(FAR struct file *filep, FAR const char *relpath,
|
|||
{
|
||||
/* Error opening file */
|
||||
|
||||
ret = -EBADF;
|
||||
ret = hf->fd;
|
||||
goto errout_with_buffer;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue