forked from apache/nuttx
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
risc-v/mpfs: usb: fix infinite loop issue
mpfs_write_tx_fifo() gets stuck in the following case: - CDCACM is used - ttyACM0 is opened and then closed from the remote end, such as Linux or Windows - data is written into ttyACM0 from NuttX - tx fifo will never get empty and the system is stuck Fix this by issuing an error code if the transmit fifo doesn't proceed as expected. The error code is then propagated into higher level keeping the system functional. Signed-off-by: Eero Nurkkala <eero.nurkkala@offcode.fi>
- Loading branch information
1 parent
a97a6e1
commit 90d9b6b
Showing
1 changed file
with
38 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters