[Linux-stable-mirror] [PATCH 4.9 72/86] tty: fix data race between tty_init_dev and flush of buf