From: Takashi Iwai Date: Mon, 25 Jan 2016 10:24:56 +0000 (+0100) Subject: ALSA: seq: Degrade the error message for too many opens X-Git-Tag: v3.16.35~486 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=50597ac6263e083335aeffedd693e75483e88a2d;p=thirdparty%2Fkernel%2Fstable.git ALSA: seq: Degrade the error message for too many opens commit da10816e3d923565b470fec78a674baba794ed33 upstream. ALSA OSS sequencer spews a kernel error message ("ALSA: seq_oss: too many applications") when user-space tries to open more than the limit. This means that it can easily fill the log buffer. Since it's merely a normal error, it's safe to suppress it via pr_debug() instead. Signed-off-by: Takashi Iwai Signed-off-by: Luis Henriques --- diff --git a/sound/core/seq/oss/seq_oss_init.c b/sound/core/seq/oss/seq_oss_init.c index b9184d20c39ff..beea8c861f49b 100644 --- a/sound/core/seq/oss/seq_oss_init.c +++ b/sound/core/seq/oss/seq_oss_init.c @@ -204,7 +204,7 @@ snd_seq_oss_open(struct file *file, int level) dp->index = i; if (i >= SNDRV_SEQ_OSS_MAX_CLIENTS) { - pr_err("ALSA: seq_oss: too many applications\n"); + pr_debug("ALSA: seq_oss: too many applications\n"); rc = -ENOMEM; goto _error; }