projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
tty: fix data race in flush_to_ldisc
[cascardo/linux.git]
/
drivers
/
tty
/
tty_buffer.c
diff --git
a/drivers/tty/tty_buffer.c
b/drivers/tty/tty_buffer.c
index
5a3fa89
..
23de97d
100644
(file)
--- a/
drivers/tty/tty_buffer.c
+++ b/
drivers/tty/tty_buffer.c
@@
-467,7
+467,7
@@
static void flush_to_ldisc(struct work_struct *work)
struct tty_struct *tty;
struct tty_ldisc *disc;
- tty =
port->itty
;
+ tty =
READ_ONCE(port->itty)
;
if (tty == NULL)
return;