Silence "tty is NULL" trace.

This commit is contained in:
Dave Jones 2013-03-01 11:09:57 -05:00
parent 2da82c8fb5
commit 1f0249effe
2 changed files with 18 additions and 0 deletions

View File

@ -664,6 +664,7 @@ Patch510: silence-noise.patch
Patch520: quiet-apm.patch
Patch530: silence-fbcon-logo.patch
Patch540: silence-empty-ipi-mask-warning.patch
Patch541: silence-tty-null.patch
Patch800: crash-driver.patch
@ -1386,6 +1387,7 @@ ApplyPatch silence-fbcon-logo.patch
# no-one cares about these warnings.
ApplyPatch silence-empty-ipi-mask-warning.patch
ApplyPatch silence-tty-null.patch
# Changes to upstream defaults.
@ -2328,6 +2330,9 @@ fi
# ||----w |
# || ||
%changelog
* Fri Mar 01 2013 Dave Jones <davej@redhat.com>
- Silence "tty is NULL" trace.
* Fri Mar 01 2013 Josh Boyer <jwboyer@redhat.com>
- Add patches to fix sunrpc panic (rhbz 904870)

13
silence-tty-null.patch Normal file
View File

@ -0,0 +1,13 @@
This should be fixed in 3.9, but is unlikely to be backported.
--- linux-3.8.1-201.fc18.x86_64/drivers/tty/tty_buffer.c~ 2013-03-01 11:07:37.498291384 -0500
+++ linux-3.8.1-201.fc18.x86_64/drivers/tty/tty_buffer.c 2013-03-01 11:08:11.088250537 -0500
@@ -473,7 +473,7 @@ static void flush_to_ldisc(struct work_s
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);