summaryrefslogtreecommitdiffstats
path: root/drivers/clk/renesas/r8a7743-cpg-mssr.c
diff options
context:
space:
mode:
authorMatthias Reichl <hias@horus.com>2020-11-05 13:34:32 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-11-06 17:24:49 +0100
commit4466d6d2f80c1193e0845d110277c56da77a6418 (patch)
treef5814b105f5b9cf07ae532571cf7f735c5072796 /drivers/clk/renesas/r8a7743-cpg-mssr.c
parentserial: txx9: add missing platform_driver_unregister() on error in serial_txx... (diff)
downloadlinux-4466d6d2f80c1193e0845d110277c56da77a6418.tar.xz
linux-4466d6d2f80c1193e0845d110277c56da77a6418.zip
tty: fix crash in release_tty if tty->port is not set
Commit 2ae0b31e0face ("tty: don't crash in tty_init_dev when missing tty_port") didn't fully prevent the crash as the cleanup path in tty_init_dev() calls release_tty() which dereferences tty->port without checking it for non-null. Add tty->port checks to release_tty to avoid the kernel crash. Fixes: 2ae0b31e0face ("tty: don't crash in tty_init_dev when missing tty_port") Signed-off-by: Matthias Reichl <hias@horus.com> Link: https://lore.kernel.org/r/20201105123432.4448-1-hias@horus.com Cc: stable <stable@vger.kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/clk/renesas/r8a7743-cpg-mssr.c')
0 files changed, 0 insertions, 0 deletions