[Linux-stable-mirror] [PATCH 4.15 30/55] tty: fix data race between tty_init_dev and flush of buf