git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ALSA: seq: Degrade the error message for too many opens
[pandora-kernel.git]
/
sound
/
core
/
seq
/
oss
/
seq_oss_synth.c
diff --git
a/sound/core/seq/oss/seq_oss_synth.c
b/sound/core/seq/oss/seq_oss_synth.c
index
ee44ab9
..
4a09c30
100644
(file)
--- a/
sound/core/seq/oss/seq_oss_synth.c
+++ b/
sound/core/seq/oss/seq_oss_synth.c
@@
-24,6
+24,7
@@
#include "seq_oss_midi.h"
#include "../seq_lock.h"
#include <linux/init.h>
#include "seq_oss_midi.h"
#include "../seq_lock.h"
#include <linux/init.h>
+#include <linux/module.h>
#include <linux/slab.h>
/*
#include <linux/slab.h>
/*
@@
-309,7
+310,7
@@
snd_seq_oss_synth_cleanup(struct seq_oss_devinfo *dp)
struct seq_oss_synth *rec;
struct seq_oss_synthinfo *info;
struct seq_oss_synth *rec;
struct seq_oss_synthinfo *info;
- if (snd_BUG_ON(dp->max_synthdev >
=
SNDRV_SEQ_OSS_MAX_SYNTH_DEVS))
+ if (snd_BUG_ON(dp->max_synthdev > SNDRV_SEQ_OSS_MAX_SYNTH_DEVS))
return;
for (i = 0; i < dp->max_synthdev; i++) {
info = &dp->synths[i];
return;
for (i = 0; i < dp->max_synthdev; i++) {
info = &dp->synths[i];