fs/rpmsgfs: return real err value when open failed
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
This commit is contained in:
parent
2cf8c25292
commit
8e2f8be671
1 changed files with 1 additions and 1 deletions
|
|
@ -322,7 +322,7 @@ static int rpmsgfs_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