In the function tx_work_handler, a pointer to ring buffer data is given to usb_transfer then the ring_buf_get_finish is called. So, the data is mark as read (by ring_buf_get_finish) while the data are not yet transferred to usb. If later a user send data, the pointer hold by usb stack could be rewrite. Signed-off-by: Julien D'Ascenzio <julien.dascenzio@paratronic.fr> |
||
|---|---|---|
| .. | ||
| class | ||
| bos.c | ||
| CMakeLists.txt | ||
| Kconfig | ||
| os_desc.c | ||
| os_desc.h | ||
| usb_descriptor.c | ||
| usb_descriptor.h | ||
| usb_device.c | ||
| usb_transfer.c | ||
| usb_transfer.h | ||
| usb_work_q.c | ||
| usb_work_q.h | ||