Skip to content

Commit

Permalink
tty: Convert tty->closing to int
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Peter Hurley authored and Greg Kroah-Hartman committed Nov 6, 2014
1 parent 633caba commit 413ba63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/linux/tty.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 413ba63

Please sign in to comment.