Browse Source

dcd_da146xx: Clear transfer data on dcd_edpt_close

Closing endpoint clears data in affected xfer_ctl_t
Jerzy Kasenberg 4 years ago
parent
commit
1503955860
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/portable/dialog/da146xx/dcd_da146xx.c

+ 1 - 0
src/portable/dialog/da146xx/dcd_da146xx.c

@@ -939,6 +939,7 @@ void dcd_edpt_close(uint8_t rhport, uint8_t ep_addr)
       }
     }
   }
+  tu_memclr(xfer, sizeof(*xfer));
 }
 
 bool dcd_edpt_xfer(uint8_t rhport, uint8_t ep_addr, uint8_t * buffer, uint16_t total_bytes)