summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--debug-tty-print-dev-name.patch2
1 files changed, 1 insertions, 1 deletions
diff --git a/debug-tty-print-dev-name.patch b/debug-tty-print-dev-name.patch
index 4b0b06633..507dfe5f1 100644
--- a/debug-tty-print-dev-name.patch
+++ b/debug-tty-print-dev-name.patch
@@ -9,7 +9,7 @@ index 613c852..09c86d2 100644
- WARN_ON(!test_bit(TTY_LDISC, &tty->flags));
+ if (!test_bit(TTY_LDISC, &tty->flags)) {
+ printk("%s: !test_bit(TTY_LDISC, &tty->flags) dev=%s ldisc=%s\n",
-+ __func__, tty->name, tty->ldisc ? tty->ldisc->name : NULL);
++ __func__, tty->name, tty->ldisc ? tty->ldisc->ops ? tty->ldisc->ops->name : NULL : NULL);
+ WARN_ON(1);
+ }
mutex_unlock(&tty->ldisc_mutex);