Skip to content
Commit fdf5dc38 authored by Julien D'Ascenzio's avatar Julien D'Ascenzio Committed by Carles Cufi
Browse files

usb: cdc_acm: fix bug on transmission



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: default avatarJulien D'Ascenzio <julien.dascenzio@paratronic.fr>
parent f49cbc98
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment