forked from Minki/linux
8a8dabf2dd
Historically the N_TTY driver could never fail but this has become broken over time. Rather than trying to rewrite half the ldisc layer to fix the breakage introduce a second level of fallback with an N_NULL ldisc which cannot fail, and thus restore the guarantees required by the ldisc layer. We still try and fail to N_TTY first. It's much more useful to find yourself back in your old ldisc (first attempt) or in N_TTY (second attempt), and while I'm not aware of any code out there that makes those assumptions it's good to drive(r) defensively. Signed-off-by: Alan Cox <alan@linux.intel.com> Reported-by: Dmitry Vyukov <dvyukov@google.com> Tested-by: Dmitry Vyukov <dvyukov@google.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
38 lines
1.2 KiB
Makefile
38 lines
1.2 KiB
Makefile
obj-$(CONFIG_TTY) += tty_io.o n_tty.o tty_ioctl.o tty_ldisc.o \
|
|
tty_buffer.o tty_port.o tty_mutex.o \
|
|
tty_ldsem.o tty_baudrate.o tty_jobctrl.o \
|
|
n_null.o
|
|
obj-$(CONFIG_LEGACY_PTYS) += pty.o
|
|
obj-$(CONFIG_UNIX98_PTYS) += pty.o
|
|
obj-$(CONFIG_AUDIT) += tty_audit.o
|
|
obj-$(CONFIG_MAGIC_SYSRQ) += sysrq.o
|
|
obj-$(CONFIG_N_HDLC) += n_hdlc.o
|
|
obj-$(CONFIG_N_GSM) += n_gsm.o
|
|
obj-$(CONFIG_TRACE_ROUTER) += n_tracerouter.o
|
|
obj-$(CONFIG_TRACE_SINK) += n_tracesink.o
|
|
obj-$(CONFIG_R3964) += n_r3964.o
|
|
|
|
obj-y += vt/
|
|
obj-$(CONFIG_HVC_DRIVER) += hvc/
|
|
obj-y += serial/
|
|
obj-$(CONFIG_SERIAL_DEV_BUS) += serdev/
|
|
|
|
# tty drivers
|
|
obj-$(CONFIG_AMIGA_BUILTIN_SERIAL) += amiserial.o
|
|
obj-$(CONFIG_BFIN_JTAG_COMM) += bfin_jtag_comm.o
|
|
obj-$(CONFIG_CYCLADES) += cyclades.o
|
|
obj-$(CONFIG_ISI) += isicom.o
|
|
obj-$(CONFIG_MOXA_INTELLIO) += moxa.o
|
|
obj-$(CONFIG_MOXA_SMARTIO) += mxser.o
|
|
obj-$(CONFIG_NOZOMI) += nozomi.o
|
|
obj-$(CONFIG_ROCKETPORT) += rocket.o
|
|
obj-$(CONFIG_SYNCLINK_GT) += synclink_gt.o
|
|
obj-$(CONFIG_SYNCLINKMP) += synclinkmp.o
|
|
obj-$(CONFIG_SYNCLINK) += synclink.o
|
|
obj-$(CONFIG_PPC_EPAPR_HV_BYTECHAN) += ehv_bytechan.o
|
|
obj-$(CONFIG_GOLDFISH_TTY) += goldfish.o
|
|
obj-$(CONFIG_DA_TTY) += metag_da.o
|
|
obj-$(CONFIG_MIPS_EJTAG_FDC_TTY) += mips_ejtag_fdc.o
|
|
|
|
obj-y += ipwireless/
|