aboutsummaryrefslogtreecommitdiff
path: root/drivers/accessibility
diff options
context:
space:
mode:
authorGravatar Greg Kroah-Hartman <gregkh@linuxfoundation.org> 2023-01-22 08:37:23 +0100
committerGravatar Greg Kroah-Hartman <gregkh@linuxfoundation.org> 2023-01-22 08:37:23 +0100
commit99ba2ad1db623df79456b8556b3f4900f394c8c2 (patch)
tree2bf6a20de87f0a5b944fd69d53723fc4710d7b7e /drivers/accessibility
parentfirmware: dmi-sysfs: Fix null-ptr-deref in dmi_sysfs_register_handle (diff)
parentLinux 6.2-rc5 (diff)
downloadlinux-99ba2ad1db623df79456b8556b3f4900f394c8c2.tar.gz
linux-99ba2ad1db623df79456b8556b3f4900f394c8c2.tar.bz2
linux-99ba2ad1db623df79456b8556b3f4900f394c8c2.zip
Merge 6.2-rc5 into char-misc-next
We need the char/misc driver fixes in here as well. Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/accessibility')
-rw-r--r--drivers/accessibility/speakup/spk_ttyio.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/accessibility/speakup/spk_ttyio.c b/drivers/accessibility/speakup/spk_ttyio.c
index 08cf8a17754b..07373b3debd1 100644
--- a/drivers/accessibility/speakup/spk_ttyio.c
+++ b/drivers/accessibility/speakup/spk_ttyio.c
@@ -354,6 +354,9 @@ void spk_ttyio_release(struct spk_synth *in_synth)
{
struct tty_struct *tty = in_synth->dev;
+ if (tty == NULL)
+ return;
+
tty_lock(tty);
if (tty->ops->close)