Searched hist:dcbc0ae4f8fcdd4c873e7a9bac49ab84b0453813 (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/usb/serial/ |
H A D | digi_acceleport.c | diff dcbc0ae4f8fcdd4c873e7a9bac49ab84b0453813 Wed May 19 04:20:02 CDT 2021 Johan Hovold <johan@kernel.org> USB: serial: digi_acceleport: add chars_in_buffer locking
Both the dp_write_urb_in_use flag and dp_out_buf_len counter should be accessed while holding the driver port lock. Add the missing locking to chars_in_buffer and clean up the implementation somewhat by using a common exit path.
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Johan Hovold <johan@kernel.org>
|