]> git.baikalelectronics.ru Git - kernel.git/commit
printk: fix regression in SYSLOG_ACTION_CLEAR
authorAlan Stern <stern@rowland.harvard.edu>
Fri, 22 Jun 2012 21:12:19 +0000 (17:12 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 25 Jun 2012 19:11:58 +0000 (12:11 -0700)
commit62dd4b816e858920b81cdff725e21a890c37cba8
tree1804bac9d31e9332e1960630de960e224ec9218f
parentcfed8aea9db09f94ee45ca3ad5837199f885277e
printk: fix regression in SYSLOG_ACTION_CLEAR

Commit 3abf136d80270b62150ed129a34551fef9bc8d1d (printk: convert
byte-buffer to variable-length record buffer) introduced a regression
by accidentally removing a "break" statement from inside the big
switch in printk's do_syslog().  The symptom of this bug is that the
"dmesg -C" command doesn't only clear the kernel's log buffer; it also
disables console logging.

This patch (as1561) fixes the regression by adding the missing
"break".

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
CC: Kay Sievers <kay@vrfy.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
kernel/printk.c