diff options
| author | Xiaobing Tu <[email protected]> | 2012-03-16 03:00:26 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2012-04-09 12:12:45 -0700 |
| commit | c56a00a165712fd73081f40044b1e64407bb1875 (patch) | |
| tree | fee2ca034eb2cc52e6a21880ad875e6d05307d57 /tools/perf/scripts/python/bin | |
| parent | 871bdea6f8c64517635bec352b8bec6b72a26d80 (diff) | |
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 <[email protected]>
Signed-off-by: Xiaobing Tu <[email protected]>
Cc: Jiri Slaby <[email protected]>
Cc: Alan Cox <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions