aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Hurley <peter@hurleysoftware.com>2014-11-05 12:40:04 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-11-06 17:57:27 -0500
commit413ba6385382bc80e4bf2f58efa900e82e810b11 (patch)
treea2bb1b252942e22659f508602d84c6cb5885e3dc
parent633caba8932d9ba2f79bbcb7573e58eae3fdac68 (diff)
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.h2
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 {
284 284
285#define N_TTY_BUF_SIZE 4096 285#define N_TTY_BUF_SIZE 4096
286 286
287 unsigned char closing:1; 287 int closing;
288 unsigned char *write_buf; 288 unsigned char *write_buf;
289 int write_cnt; 289 int write_cnt;
290 /* If the tty has a pending do_SAK, queue it here - akpm */ 290 /* If the tty has a pending do_SAK, queue it here - akpm */