xiaoxiang781216 opened a new pull request #2643:
URL: https://github.com/apache/incubator-nuttx/pull/2643


   ## Summary
   NULL inode passed to files_allocate doesn't mark file struct in the 
allocated state, so other threads which invovle in file allocation(e.g. open or 
dup) may allocate the same file struct again.
   Let's use a temp file struct to avoid the NULL inode case.
   
   ## Impact
   Fix the race condition
   
   ## Testing
   
   


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to