From: Xiaobing Tu Date: Fri, 16 Mar 2012 03:00:26 +0000 (+0000) Subject: tty: hold lock across tty buffer finding and buffer filling X-Git-Tag: v3.5-rc1~146^2~30^2~11 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c56a00a165712fd73081f40044b1e64407bb1875;p=pandora-kernel.git tty: hold lock across tty buffer finding and buffer filling tty_buffer_request_room is well protected, but while after it returns, it releases the port->lock. tty->buf.tail might be modified by either irq handler or other threads. The patch adds more protection by holding the lock across tty buffer finding and buffer filling. Signed-off-by: Alek Du Signed-off-by: Xiaobing Tu Cc: Jiri Slaby Cc: Alan Cox Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed