• Jeffrey Lee's avatar
    Fix null pointer dereferences. Add protection against DeviceFS xfers being... · 4a66dfdd
    Jeffrey Lee authored
    Fix null pointer dereferences. Add protection against DeviceFS xfers being multiply inserted into their pipes xfer queue.
    
    Detail:
      build/Version - Increased version numbers
      build/c/ehcimodule, build/c/ohcimodule - Fixed null pointer dereferences in debug code
      build/c/port, build/s/triggercbs - Fix debug code in tsleep() using hardcoded IRQsema ptr. Now requests the right pointer from build/s/triggercbs.
      build/c/usbmodule - Fix null pointer deferences in debug code and MonitorTX/MonitorRX handlers. Add xfer_busy and delayed_read flags to devstream struct in order to track whether the xfer associated with the stream is busy or not. Previously if the TxWakeUp/RxWakeUp device calls were made on a stream which already had an active xfer, the xfer would end up being inserted in the USB pipes xfer queue twice, creating a circular reference, resulting in (at the least) infinite loops in usbd_dump_queue() when debugging is enabled. Now, in the case of reads, a second read will automatically be issued once t...
    4a66dfdd
VersionNum 811 Bytes