summaryrefslogtreecommitdiff
path: root/drivers/usb/serial/io_edgeport.c
diff options
context:
space:
mode:
authorJohan Hovold <johan@kernel.org>2021-05-19 12:20:02 +0300
committerJohan Hovold <johan@kernel.org>2021-05-21 16:46:02 +0300
commitdcbc0ae4f8fcdd4c873e7a9bac49ab84b0453813 (patch)
treed34c5782a7773bbf649ebb00f4129ea8263b6be3 /drivers/usb/serial/io_edgeport.c
parent3aed3af202aa2f8246d07875809b9bc07a02131b (diff)
downloadlinux-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