diff options
author | Peter Hurley <peter@hurleysoftware.com> | 2014-11-05 20:40:04 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-11-07 01:57:27 +0300 |
commit | 413ba6385382bc80e4bf2f58efa900e82e810b11 (patch) | |
tree | a2bb1b252942e22659f508602d84c6cb5885e3dc | |
parent | 633caba8932d9ba2f79bbcb7573e58eae3fdac68 (diff) | |
download | linux-413ba6385382bc80e4bf2f58efa900e82e810b11.tar.xz |
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>
-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 */ |