linux-stable/drivers/tty
Jiri Slaby b91939f528 TTY: n_tty, simplify read_buf+echo_buf allocation
ldisc->open and close are called only once and cannot cross. So the
tests in open and close are superfluous. Remove them. (But leave sets
to NULL to ensure there is not a bug somewhere.)

And when the tests are gone, handle properly failures in open. We
leaked read_buf if allocation of echo_buf failed before. Now this is
not the case anymore.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Acked-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2012-10-22 16:50:53 -07:00
..
hvc Feature: 2012-10-12 22:20:28 +09:00
ipwireless Merge branch 'for-3.7' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/wq 2012-10-02 09:54:49 -07:00
serial TTY fixes for 3.7-rc2 2012-10-19 11:28:59 -07:00
vt TTY: vt, fix paste_selection ldisc handling 2012-10-22 16:50:53 -07:00
amiserial.c serial: add a new helper function 2012-09-05 13:28:35 -07:00
bfin_jtag_comm.c TTY: use tty_port_link_device 2012-08-13 16:50:19 -07:00
cyclades.c serial: add a new helper function 2012-09-05 13:28:35 -07:00
ehv_bytechan.c TTY: use tty_port_register_device 2012-08-13 16:50:19 -07:00
isicom.c serial: add a new helper function 2012-09-05 13:28:35 -07:00
Kconfig tty/serial: put (EXPERIMENTAL) marking back on N_GSM and SERIAL_IFX6X60 2012-09-18 17:17:56 +01:00
Makefile
moxa.c TTY: tty_alloc_driver() returns error pointers 2012-08-16 12:07:23 -07:00
moxa.h
mxser.c serial: add a new helper function 2012-09-05 13:28:35 -07:00
mxser.h
n_gsm.c tty: n_gsm: Fix incorrect debug display 2012-09-17 04:45:30 -07:00
n_hdlc.c
n_r3964.c tty: localise the lock 2012-08-10 12:55:47 -07:00
n_tracerouter.c
n_tracesink.c
n_tracesink.h
n_tty.c TTY: n_tty, simplify read_buf+echo_buf allocation 2012-10-22 16:50:53 -07:00
nozomi.c TTY: use tty_port_register_device 2012-08-13 16:50:19 -07:00
pty.c TTY: move devpts kill to pty 2012-10-22 16:50:13 -07:00
rocket.c TTY: use tty_port_register_device 2012-08-13 16:50:19 -07:00
rocket.h
rocket_int.h
synclink.c serial: add a new helper function 2012-09-05 13:28:35 -07:00
synclink_gt.c serial: add a new helper function 2012-09-05 13:28:35 -07:00
synclinkmp.c serial: add a new helper function 2012-09-05 13:28:35 -07:00
sysrq.c sparc64: Add global PMU register dumping via sysrq. 2012-10-16 09:34:01 -07:00
tty_audit.c userns: Convert audit to work with user namespaces enabled 2012-09-18 01:00:26 -07:00
tty_buffer.c tty: prevent unnecessary work queue lock checking on flip buffer copy 2012-10-22 16:47:51 -07:00
tty_io.c TTY: move devpts kill to pty 2012-10-22 16:50:13 -07:00
tty_ioctl.c tty: Fix up PPC fallout from the termios move 2012-07-17 09:10:55 -07:00
tty_ldisc.c TTY: ldisc, wait for idle ldisc in release 2012-10-22 16:50:53 -07:00
tty_mutex.c tty: localise the lock 2012-08-10 12:55:47 -07:00
tty_port.c tty_register_device_attr updated for tty-next 2012-09-06 14:40:18 -07:00