linux-stable/drivers/tty
Christophe JAILLET cddee5c287 tty: serial: 8250: serial_cs: Fix a memory leak in error handling path
[ Upstream commit fad92b1104 ]

In the probe function, if the final 'serial_config()' fails, 'info' is
leaking.

Add a resource handling path to free this memory.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/dc25f96b7faebf42e60fe8d02963c941cf4d8124.1621971720.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-07-20 16:16:08 +02:00
..
hvc tty: hvcs: Don't NULL tty->driver_data until hvcs_cleanup() 2020-10-29 09:55:08 +01:00
ipwireless tty: ipwireless: fix error handling 2020-10-30 10:38:31 +01:00
serdev
serial tty: serial: 8250: serial_cs: Fix a memory leak in error handling path 2021-07-20 16:16:08 +02:00
vt tty: vt: always invoke vc->vc_sw->con_resize callback 2021-05-26 11:48:35 +02:00
amiserial.c
cyclades.c
ehv_bytechan.c
goldfish.c
isicom.c
Kconfig
Makefile
mips_ejtag_fdc.c
moxa.c
moxa.h
mxser.c
mxser.h
n_gsm.c tty: n_gsm: Fix bogus i++ in gsm_data_kick 2020-06-25 15:32:57 +02:00
n_hdlc.c
n_null.c
n_r3964.c
n_tracerouter.c
n_tracesink.c
n_tracesink.h
n_tty.c
nozomi.c tty: nozomi: Fix the error handling path of 'nozomi_card_init()' 2021-07-20 16:15:55 +02:00
pty.c pty: do tty_flip_buffer_push without port->lock in pty_write 2020-10-29 09:55:08 +01:00
rocket.c
rocket.h
rocket_int.h
synclink.c
synclink_gt.c
synclinkmp.c
sysrq.c
tty_audit.c
tty_baudrate.c
tty_buffer.c
tty_io.c tty: fix return value for unsupported ioctls 2021-05-22 10:59:31 +02:00
tty_ioctl.c
tty_jobctrl.c tty: Fix ->session locking 2020-12-11 13:25:01 +01:00
tty_ldisc.c
tty_ldsem.c
tty_mutex.c
tty_port.c
vcc.c sparc64: vcc: Fix error return code in vcc_probe() 2020-10-01 13:14:43 +02:00