pkarashchenko opened a new pull request #5718: URL: https://github.com/apache/incubator-nuttx/pull/5718
## Summary This PR solves two issues: 1. If CAN driver is open two times one time with `O_RDONLY` flag and second time with `O_WRONLY` flag, then receiver side is constantly reporting `CAN_ERROR_INTERNAL` error with `CAN_ERROR5_RXOVERFLOW` error code. 2. The `CAN_ERROR_INTERNAL` error with `CAN_ERROR5_RXOVERFLOW` error code is reported globally across all the opened driver instances. This lead to a situation when CAN driver was open for read and then file descriptor was duplicated due to new task spawn. The new task is actually not a CAN reader, but if the file descriptor is not closed, then the RX overflow error is reported continuously to the actual CAN reader. ## Impact CAN driver users ## Testing In progress. Testing with a custom SAME70 based board. -- 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: commits-unsubscr...@nuttx.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org