diff options
author | Peter Hurley | 2014-11-05 18:40:04 +0100 |
---|---|---|
committer | Greg Kroah-Hartman | 2014-11-06 23:57:27 +0100 |
commit | 413ba6385382bc80e4bf2f58efa900e82e810b11 (patch) | |
tree | a2bb1b252942e22659f508602d84c6cb5885e3dc /include/linux/tty.h | |
parent | tty: Move tty hung up check from port->lock critical section (diff) | |
download | kernel-qcow2-linux-413ba6385382bc80e4bf2f58efa900e82e810b11.tar.gz kernel-qcow2-linux-413ba6385382bc80e4bf2f58efa900e82e810b11.tar.xz kernel-qcow2-linux-413ba6385382bc80e4bf2f58efa900e82e810b11.zip |
tty: Convert tty->closing to int
tty->closing is a bitfield member; prevent corruption from non-atomic
update by assigning a unique memory location.
Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/tty.h')
-rw-r--r-- | include/linux/tty.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/tty.h b/include/linux/tty.h index c52a689e09aa..7d66ae508e5c 100644 --- a/include/linux/tty.h +++ b/include/linux/tty.h @@ -284,7 +284,7 @@ struct tty_struct { #define N_TTY_BUF_SIZE 4096 - unsigned char closing:1; + int closing; unsigned char *write_buf; int write_cnt; /* If the tty has a pending do_SAK, queue it here - akpm */ |