OceanfromXiaomi opened a new pull request, #17775: URL: https://github.com/apache/nuttx/pull/17775
*Note: Please adhere to [Contributing Guidelines](https://github.com/apache/nuttx/blob/master/CONTRIBUTING.md).* ## Summary The `can_datahandler()` API calls `iob_tryadd_queue()` to enqueue received CAN data into an IOB queue. However, `iob_tryadd_queue()` may return a negative value on failure, which was not properly propagated to the caller. This change updates `can_datahandler()` to correctly handle and return the error code from `iob_tryadd_queue()`, allowing callers to detect queueing failures and react appropriately. ## Impact This change improves error handling robustness in the CAN receive path. There are no API changes, no impact on the build process, and no changes to hardware behavior, security, or compatibility. ## Testing Tested in an automotive integration project using continuous CAN traffic. -- 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]
