Merge 6.2-rc5 into char-misc-next
[linux-2.6-microblaze.git] / drivers / accessibility / speakup / spk_ttyio.c
index 08cf8a1..07373b3 100644 (file)
@@ -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)