commit | 50dbb8528757b1977efd5d270ed9d262cbbef87d | [log] [tgz] |
---|---|---|
author | Johan Hovold <jhovold@gmail.com> | Wed Mar 17 23:00:43 2010 +0100 |
committer | Greg Kroah-Hartman <gregkh@suse.de> | Thu May 20 13:21:33 2010 -0700 |
tree | d64c9e367ba2aef9cd2325aa2304edd47fc39eff | |
parent | 30af7fb5a40f8724c130428473edffa73170e04c [diff] |
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>