diff options
| author | Jerzy Kasenberg <[email protected]> | 2020-04-27 16:42:35 +0200 |
|---|---|---|
| committer | Jerzy Kasenberg <[email protected]> | 2020-04-27 16:42:35 +0200 |
| commit | 63cefb761535bf9f9f86a261c4a7ba07710c6c1d (patch) | |
| tree | d1c6ab1c91bbdce06ea9b1e3447f80bf9966b765 /src/host | |
| parent | d54343e4a6bc84549caf69ecd26a98852127ef3f (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/host')
0 files changed, 0 insertions, 0 deletions
