From c56a00a165712fd73081f40044b1e64407bb1875 Mon Sep 17 00:00:00 2001 From: Xiaobing Tu Date: Fri, 16 Mar 2012 03:00:26 +0000 Subject: [PATCH] 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-format-patch failed