You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by "raiden00pl (via GitHub)" <gi...@apache.org> on 2026/10/13 18:18:15 UTC

[PR] drivers/can/can.c: Fix FIONREAD result type and FIFO wrap. [nuttx]

raiden00pl opened a new pull request, #20643:
URL: https://github.com/apache/nuttx/pull/20643

   
   ## Summary
   
   FIONREAD wrote the count through a uint8_t pointer, but
   include/nuttx/fs/ioctl.h defines its argument as int *.  The count
   was also negative once the RX FIFO had wrapped.
   
   Write an int and handle the wrap.  Callers that passed a uint8_t
   must pass an int now.  The result is still the number of queued
   messages, not bytes.
   
   ## Impact
   bugfix
   
   ## Testing
   detected by automate tests from https://github.com/railab/nuttx-testlab
   


-- 
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-unsubscribe@nuttx.apache.org

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


Re: [PR] drivers/can/can.c: Fix FIONREAD result type and FIFO wrap. [nuttx]

Posted by "xiaoxiang781216 (via GitHub)" <gi...@apache.org>.
xiaoxiang781216 merged PR #20643:
URL: https://github.com/apache/nuttx/pull/20643


-- 
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-unsubscribe@nuttx.apache.org

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


Re: [PR] drivers/can/can.c: Fix FIONREAD result type and FIFO wrap. [nuttx]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #20643:
URL: https://github.com/apache/nuttx/pull/20643#issuecomment-6158741135

   <!-- membrowse-pr-comment -->
   ## <img src="https://membrowse.com/membrowse-logo.svg" height="24" align="top"> MemBrowse Memory Report
   
   *No memory changes detected for:*
   - [arduino-mega2560](https://membrowse.com/public/apache/nuttx/target/arduino-mega2560/compare?head=5518bddba1fd12935d145c3d9055d9ae6b62d1ef&base=dd7e7de8e1a66939368a5877fc09f4f8c3c84c6b)
   - [esp32-devkitc](https://membrowse.com/public/apache/nuttx/target/esp32-devkitc/compare?head=5518bddba1fd12935d145c3d9055d9ae6b62d1ef&base=dd7e7de8e1a66939368a5877fc09f4f8c3c84c6b)
   - [hifive1-revb](https://membrowse.com/public/apache/nuttx/target/hifive1-revb/compare?head=5518bddba1fd12935d145c3d9055d9ae6b62d1ef&base=dd7e7de8e1a66939368a5877fc09f4f8c3c84c6b)
   - [mirtoo](https://membrowse.com/public/apache/nuttx/target/mirtoo/compare?head=5518bddba1fd12935d145c3d9055d9ae6b62d1ef&base=dd7e7de8e1a66939368a5877fc09f4f8c3c84c6b)
   - [qemu-armv8a](https://membrowse.com/public/apache/nuttx/target/qemu-armv8a/compare?head=5518bddba1fd12935d145c3d9055d9ae6b62d1ef&base=dd7e7de8e1a66939368a5877fc09f4f8c3c84c6b)
   - [rx65n-rsk2mb](https://membrowse.com/public/apache/nuttx/target/rx65n-rsk2mb/compare?head=5518bddba1fd12935d145c3d9055d9ae6b62d1ef&base=dd7e7de8e1a66939368a5877fc09f4f8c3c84c6b)
   - [s698pm-dkit](https://membrowse.com/public/apache/nuttx/target/s698pm-dkit/compare?head=5518bddba1fd12935d145c3d9055d9ae6b62d1ef&base=dd7e7de8e1a66939368a5877fc09f4f8c3c84c6b)
   - [stm32-nucleo-f103rb](https://membrowse.com/public/apache/nuttx/target/stm32-nucleo-f103rb/compare?head=5518bddba1fd12935d145c3d9055d9ae6b62d1ef&base=dd7e7de8e1a66939368a5877fc09f4f8c3c84c6b)
   


-- 
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-unsubscribe@nuttx.apache.org

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