diff options
| author | 2010-03-17 23:00:43 +0100 | |
|---|---|---|
| committer | 2010-05-20 13:21:33 -0700 | |
| commit | 50dbb8528757b1977efd5d270ed9d262cbbef87d (patch) | |
| tree | d64c9e367ba2aef9cd2325aa2304edd47fc39eff /drivers/usb/serial/usb_debug.c | |
| parent | USB: serial: fix generic chars_in_buffer (diff) | |
| download | wireguard-linux-50dbb8528757b1977efd5d270ed9d262cbbef87d.tar.xz wireguard-linux-50dbb8528757b1977efd5d270ed9d262cbbef87d.zip | |
USB: serial: fix missing locking on fifo in write callback
On errors the fifo was reset without any locking. This could race with
write which do kfifo_put and perhaps also chars_in_buffer and write_room.
Every other access to the fifo is protected using the port lock so
better add it to the error path as well.
Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/serial/usb_debug.c')
0 files changed, 0 insertions, 0 deletions
