From: Johan Hovold Date: Wed, 17 Mar 2010 22:00:43 +0000 (+0100) Subject: USB: serial: fix missing locking on fifo in write callback X-Git-Tag: v2.6.35-rc1~471^2~194 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=50dbb8528757b1977efd5d270ed9d262cbbef87d;p=pandora-kernel.git 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 Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed