diff options
author | Johan Hovold <johan@kernel.org> | 2021-05-19 12:20:02 +0300 |
---|---|---|
committer | Johan Hovold <johan@kernel.org> | 2021-05-21 16:46:02 +0300 |
commit | dcbc0ae4f8fcdd4c873e7a9bac49ab84b0453813 (patch) | |
tree | d34c5782a7773bbf649ebb00f4129ea8263b6be3 /drivers/usb/serial/io_edgeport.c | |
parent | 3aed3af202aa2f8246d07875809b9bc07a02131b (diff) | |
download | linux-dcbc0ae4f8fcdd4c873e7a9bac49ab84b0453813.tar.xz |
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>
Diffstat (limited to 'drivers/usb/serial/io_edgeport.c')
0 files changed, 0 insertions, 0 deletions