diff options
| author | Johan Hovold <[email protected]> | 2021-05-19 11:20:02 +0200 |
|---|---|---|
| committer | Johan Hovold <[email protected]> | 2021-05-21 15:46:02 +0200 |
| commit | dcbc0ae4f8fcdd4c873e7a9bac49ab84b0453813 (patch) | |
| tree | d34c5782a7773bbf649ebb00f4129ea8263b6be3 /drivers/platform/surface/aggregator/controller.c | |
| parent | 3aed3af202aa2f8246d07875809b9bc07a02131b (diff) | |
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 <[email protected]>
Signed-off-by: Johan Hovold <[email protected]>
Diffstat (limited to 'drivers/platform/surface/aggregator/controller.c')
0 files changed, 0 insertions, 0 deletions