[Linux-stable-mirror] [PATCH 4.14 145/146] n_tty: fix EXTPROC vs ICANON interaction with TIOCINQ (aka FIONREAD)