[kernel] oops, it's ->ops->name

Kyle McMartin kyle at fedoraproject.org
Thu Nov 25 16:34:34 UTC 2010


commit e0db5a7a29754bc82ecc4212d3c5e31767245d95
Author: kyle <kyle at mcmartin.ca>
Date:   Thu Nov 25 11:34:29 2010 -0500

    oops, it's ->ops->name

 debug-tty-print-dev-name.patch |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/debug-tty-print-dev-name.patch b/debug-tty-print-dev-name.patch
index 4b0b066..507dfe5 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);


More information about the scm-commits mailing list