Skip to contentSkip to conversation

TTY: disable debugging warning

PATCH In review Jiri Slaby 2 participants 4 messages Feb 27, 2013 TTY layer and serial drivers

lore
Share & tools
lore

Jiri Slaby

author
#0 lore raw

PATCH 1/1 TTY: disable debugging warning

We added a warning to flush_to_ldisc to report cases when it is called with a NULL tty. It was for debugging purposes and it lead to a patchset from Peter Hurley. The patchset however did not make it to 3.9, so disable the warning now to not disturb people.

We can re-add it when the series is in and we are hunting for another bugs.

---
 drivers/tty/tty_buffer.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/tty/tty_buffer.c +1 -1
index bb11993..578aa75 100644
@@ -425,7 +425,7 @@ static void flush_to_ldisc(struct work_struct *work)
 	struct tty_ldisc *disc;
 
 	tty = port->itty;
-	if (WARN_RATELIMIT(tty == NULL, "tty is NULL\n"))
+	if (tty == NULL)
 		return;
 
 	disc = tty_ldisc_ref(tty);
Signature · 1 line
1.8.1.4
maintainer
#1 lore raw
Quoted 5 lines · Jiri Slaby

We added a warning to flush_to_ldisc to report cases when it is called with a NULL tty. It was for debugging purposes and it lead to a patchset from Peter Hurley. The patchset however did not make it to 3.9, so disable the warning now to not disturb people.

Quoted 7 lines

We can re-add it when the series is in and we are hunting for another bugs.

---
 drivers/tty/tty_buffer.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Thanks, I'll queue this up for 3.9-final, but does it also need to go into 3.8?

thanks,

greg k-h

author
#2 lore raw
Quoted 9 lines · Greg KH
Quoted 8 lines · Jiri Slaby

We added a warning to flush_to_ldisc to report cases when it is called with a NULL tty. It was for debugging purposes and it lead to a patchset from Peter Hurley. The patchset however did not make it to 3.9, so disable the warning now to not disturb people.

We can re-add it when the series is in and we are hunting for another bugs.

Quoted 7 lines
Quoted 4 lines
---
 drivers/tty/tty_buffer.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Thanks, I'll queue this up for 3.9-final, but does it also need to go into 3.8?

That's a question... In 3.8 it happened too, but very seldomly. Read:
only triggerable by trinity fuzz tester after hours of fuzzing. But yeah, let's disable it there too so that people won't complain.

thanks,

Signature · 2 lines
js
suse labs
maintainer
#3 lore raw
Quoted 15 lines · Jiri Slaby
Quoted 14 lines · Greg KH
Quoted 12 lines · Jiri Slaby

We added a warning to flush_to_ldisc to report cases when it is called with a NULL tty. It was for debugging purposes and it lead to a patchset from Peter Hurley. The patchset however did not make it to 3.9, so disable the warning now to not disturb people.

We can re-add it when the series is in and we are hunting for another bugs.

---
 drivers/tty/tty_buffer.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 6 lines
Quoted 2 lines

Thanks, I'll queue this up for 3.9-final, but does it also need to go into 3.8?

That's a question... In 3.8 it happened too, but very seldomly. Read:
only triggerable by trinity fuzz tester after hours of fuzzing. But yeah, let's disable it there too so that people won't complain.

Ok, I'll queue it up for the stable release then, thanks.

greg k-h