aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/radix-tree/xarray.c
diff options
context:
space:
mode:
authorStefan Agner <[email protected]>2018-08-28 10:44:24 +0000
committerGreg Kroah-Hartman <[email protected]>2018-09-18 13:22:15 +0000
commit3216c622a24b0ebb9c159a8d1daf7f17a106b3f5 (patch)
tree9b668d89dd59fbe3d5ac155eff6da271bd8a4ef9 /tools/testing/radix-tree/xarray.c
parentserial: mvebu-uart: Fix reporting of effective CSIZE to userspace (diff)
downloadkernel-3216c622a24b0ebb9c159a8d1daf7f17a106b3f5.tar.gz
kernel-3216c622a24b0ebb9c159a8d1daf7f17a106b3f5.zip
tty: serial: lpuart: avoid leaking struct tty_struct
The function tty_port_tty_get() gets a reference to the tty. Since the code is not using tty_port_tty_set(), the reference is kept even after closing the tty. Avoid using tty_port_tty_get() by directly access the tty instance. Since lpuart_start_rx_dma() is called from the .startup() and .set_termios() callback, it is safe to assume the tty instance is valid. Cc: [email protected] # v4.9+ Fixes: 5887ad43ee02 ("tty: serial: fsl_lpuart: Use cyclic DMA for Rx") Signed-off-by: Stefan Agner <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/testing/radix-tree/xarray.c')
0 files changed, 0 insertions, 0 deletions