This is an automated email from the ASF dual-hosted git repository.

ligd pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new 8e2f8be671 fs/rpmsgfs: return real err value when open failed
8e2f8be671 is described below

commit 8e2f8be671027656cf452235d46d0913eb223c32
Author: dongjiuzhu1 <dongjiuz...@xiaomi.com>
AuthorDate: Tue Oct 15 10:27:07 2024 +0800

    fs/rpmsgfs: return real err value when open failed
    
    Signed-off-by: dongjiuzhu1 <dongjiuz...@xiaomi.com>
---
 fs/rpmsgfs/rpmsgfs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/rpmsgfs/rpmsgfs.c b/fs/rpmsgfs/rpmsgfs.c
index decd14a3ed..edf9cf687b 100644
--- a/fs/rpmsgfs/rpmsgfs.c
+++ b/fs/rpmsgfs/rpmsgfs.c
@@ -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;
     }
 

Reply via email to