[PATCH] tty BUF DEBUG

From: Jiri Slaby
Date: Sun Oct 28 2012 - 16:42:02 EST


Signed-off-by: Jiri Slaby <jslaby@xxxxxxx>
---
drivers/tty/tty_buffer.c | 2 ++
1 file changed, 2 insertions(+)

diff --git a/drivers/tty/tty_buffer.c b/drivers/tty/tty_buffer.c
index 45d9161..c70274b 100644
--- a/drivers/tty/tty_buffer.c
+++ b/drivers/tty/tty_buffer.c
@@ -371,6 +371,7 @@ void tty_schedule_flip(struct tty_struct *tty)
if (buf->tail != NULL)
buf->tail->commit = buf->tail->used;
spin_unlock_irqrestore(&buf->lock, flags);
+ WARN_RATELIMIT(tty->port->itty == NULL, "HUH\n");
schedule_work(&buf->work);
}
EXPORT_SYMBOL(tty_schedule_flip);
@@ -566,6 +567,7 @@ void tty_flip_buffer_push(struct tty_struct *tty)
buf->tail->commit = buf->tail->used;
spin_unlock_irqrestore(&buf->lock, flags);

+ WARN_RATELIMIT(tty->port->itty == NULL, "HUH\n");
if (tty->low_latency)
flush_to_ldisc(&buf->work);
else
--
1.8.0


--------------010406010004010400080408--
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/