]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
ALSA: seq: Degrade the error message for too many opens
authorTakashi Iwai <tiwai@suse.de>
Mon, 25 Jan 2016 10:24:56 +0000 (11:24 +0100)
committerWilly Tarreau <w@1wt.eu>
Sat, 12 Mar 2016 13:25:45 +0000 (14:25 +0100)
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 <tiwai@suse.de>
[bwh: Backported to 3.2: this was still using snd_printk()]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: Willy Tarreau <w@1wt.eu>
sound/core/seq/oss/seq_oss_init.c

index 1f133fe4228bba74ecaf4fccef895b470650549d..335b7e131c664fdf1a018a1a8ad4515bfefa1fa3 100644 (file)
@@ -194,7 +194,7 @@ snd_seq_oss_open(struct file *file, int level)
 
        dp->index = i;
        if (i >= SNDRV_SEQ_OSS_MAX_CLIENTS) {
-               snd_printk(KERN_ERR "too many applications\n");
+               pr_debug("ALSA: seq_oss: too many applications\n");
                rc = -ENOMEM;
                goto _error;
        }