mirror of
https://github.com/apache/nuttx.git
synced 2025-12-09 03:33:51 +08:00
fs/rpmsgfs: return real err value when open failed
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user