kernel-hacking-2024-linux-s.../drivers/tty/serial
Jiri Slaby 191c5f1027 TTY: call tty_port_destroy in the rest of drivers
After commit "TTY: move tty buffers to tty_port", the tty buffers are
not freed in some drivers. This is because tty_port_destructor is not
called whenever a tty_port is freed. This was an assumption I counted
with but was unfortunately untrue. So fix the drivers to fulfil this
assumption.

To be sure, the TTY buffers (and later some stuff) are gone along with
the tty_port, we have to call tty_port_destroy at tear-down places.
This is mostly where the structure containing a tty_port is freed.
This patch does exactly that -- put tty_port_destroy at those places.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2012-11-15 17:20:58 -08:00
..
8250 serial: 8250_pci: use module_pci_driver to simplify the code 2012-10-30 14:04:52 -07:00
cpm_uart Powerpc 8xx CPM_UART setting MAXIDL register proportionaly to baud rate 2012-09-26 13:39:39 -07:00
jsm serial: jsm: Convert jsm_printk to jsm_dbg 2012-10-30 14:04:52 -07:00
21285.c
68328serial.c TTY: call tty_port_destroy in the rest of drivers 2012-11-15 17:20:58 -08:00
altera_jtaguart.c
altera_uart.c
amba-pl010.c
amba-pl011.c serial/amba-pl011: use devm_* managed resources 2012-10-25 11:29:44 -07:00
apbuart.c
apbuart.h
ar933x_uart.c tty/serial/ar933x_uart: fix baud rate calculation 2012-11-15 17:15:02 -08:00
arc_uart.c serial/arc-uart: Add new driver 2012-10-30 14:06:52 -07:00
atmel_serial.c
bcm63xx_uart.c
bfin_sport_uart.c
bfin_sport_uart.h
bfin_uart.c serial: bfin-uart: avoid dead lock in rx irq handler in smp kernel 2012-11-15 16:59:58 -08:00
clps711x.c serial: clps711x: Cleanup driver 2012-10-24 11:39:48 -07:00
crisv10.c
crisv10.h
dz.c
dz.h
efm32-uart.c
icom.c
icom.h
ifx6x60.c TTY: call tty_port_destroy in the rest of drivers 2012-11-15 17:20:58 -08:00
ifx6x60.h serial:ifx6x60:Prevent data transfer when IFX6x60 port is shutdown 2012-11-01 08:50:01 -07:00
imx.c ARM: soc: multiplatform enablement 2012-10-01 19:11:38 -07:00
ioc3_serial.c TTY: serial: move the dereference below the NULL test 2012-09-10 16:33:02 -07:00
ioc4_serial.c TTY: serial: move the dereference below the NULL test 2012-09-10 16:33:02 -07:00
ip22zilog.c
ip22zilog.h
Kconfig serial: Unneeded ARCH dependencies are removed 2012-11-15 17:11:42 -08:00
kgdb_nmi.c TTY: call tty_port_destroy in the rest of drivers 2012-11-15 17:20:58 -08:00
kgdboc.c KGDB/KDB fixes and cleanups 2012-10-13 11:16:58 +09:00
lantiq.c
lpc32xx_hs.c
m32r_sio.c
m32r_sio.h
m32r_sio_reg.h
Makefile serial/arc-uart: Add new driver 2012-10-30 14:06:52 -07:00
max310x.c
max3100.c tty: serial: max3100: Fix error case 2012-09-17 04:45:29 -07:00
mcf.c
mfd.c serial: mfd: Add nmi_touch_watchdog() into the console write function 2012-11-15 17:06:10 -08:00
mpc52xx_uart.c ARM: soc: non-critical bug fixes 2012-10-01 18:02:07 -07:00
mpsc.c
mrst_max3110.c
mrst_max3110.h
msm_serial.c msm_serial: fix clock rate on DMA-based uarts 2012-09-10 16:33:36 -07:00
msm_serial.h
msm_serial_hs.c
msm_smd_tty.c
mux.c
mxs-auart.c serial: mxs-auart: put the device in the error path 2012-09-11 12:21:33 -07:00
netx-serial.c
nwpserial.c
of_serial.c tty: of_serial: fix return value check in of_platform_serial_setup() 2012-11-01 08:50:01 -07:00
omap-serial.c Merge 3.7-rc3 into tty-next 2012-10-29 09:00:57 -07:00
pch_uart.c
pmac_zilog.c
pmac_zilog.h
pnx8xxx_uart.c
pxa.c tty: serial: KGDB support for PXA 2012-10-24 11:38:28 -07:00
sa1100.c
samsung.c serial: samsung: use clk_prepare_enable and clk_disable_unprepare 2012-10-24 11:29:30 -07:00
samsung.h
sb1250-duart.c
sc26xx.c
sccnxp.c tty: serial: sccnxp: Fix bug with unterminated platform_id list 2012-10-05 09:34:37 -07:00
serial_core.c TTY: call tty_port_destroy in the rest of drivers 2012-11-15 17:20:58 -08:00
serial_ks8695.c serial: ks8695: use __iomem pointers for MMIO 2012-09-19 15:37:13 +02:00
serial_txx9.c
sh-sci.c sh: Fix up more fallout from pointless ARM __iomem churn. 2012-10-15 14:08:48 +09:00
sh-sci.h
sirfsoc_uart.c
sirfsoc_uart.h
sn_console.c
suncore.c
sunhv.c
sunsab.c
sunsab.h
sunsu.c
sunzilog.c
sunzilog.h
timbuart.c
timbuart.h
uartlite.c
ucc_uart.c
vr41xx_siu.c
vt8500_serial.c serial: vt8500: fix possible memory leak in vt8500_serial_probe() 2012-10-24 11:34:51 -07:00
xilinx_uartps.c serial: xilinx_uartps: kill CONFIG_OF conditional 2012-11-15 16:58:19 -08:00
zs.c
zs.h