summaryrefslogtreecommitdiff
path: root/src/class
diff options
context:
space:
mode:
authorJerzy Kasenberg <[email protected]>2020-04-27 16:42:35 +0200
committerJerzy Kasenberg <[email protected]>2020-04-27 16:42:35 +0200
commit63cefb761535bf9f9f86a261c4a7ba07710c6c1d (patch)
treed1c6ab1c91bbdce06ea9b1e3447f80bf9966b765 /src/class
parentd54343e4a6bc84549caf69ecd26a98852127ef3f (diff)
Fix endpoint busy flag race condition
Busy flag was set to true after call to dcd_edpt_xfer(). In some cased it was possible that transfer finished before function ended. In this case busy flag could be set to false before it was set to true. Then setting it to true after dcd_edpt_xfer() made edpoint busy forever. This change marks endpoint as busy before transfer is started to avoid race condition.
Diffstat (limited to 'src/class')
0 files changed, 0 insertions, 0 deletions