xiaoxiang781216 commented on code in PR #17839:
URL: https://github.com/apache/nuttx/pull/17839#discussion_r2683345483


##########
fs/driver/fs_blockproxy.c:
##########
@@ -180,15 +178,16 @@ int block_proxy(FAR struct file *filep, FAR const char 
*blkdev, int oflags)
   if (ret < 0)
     {
       ferr("ERROR: Failed to open %s: %d\n", chardev, ret);
-      goto errout_with_bchdev;
+      nx_unlink(chardev);
+      return ret;
     }
 
   ret = file_dup2(&temp, filep);
   file_close(&temp);
   if (ret < 0)
     {
       ferr("ERROR: Failed to dup2%s: %d\n", chardev, ret);
-      goto errout_with_bchdev;

Review Comment:
   nx_unlink



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to