projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
467be35
)
ALSA: seq: fix off-by-one error in port limit check
author
Clemens Ladisch
<clemens@ladisch.de>
Sun, 25 Jan 2015 13:35:24 +0000
(14:35 +0100)
committer
Takashi Iwai
<tiwai@suse.de>
Mon, 26 Jan 2015 12:54:47 +0000
(13:54 +0100)
Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/seq/seq_ports.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/core/seq/seq_ports.c
b/sound/core/seq/seq_ports.c
index 794a341bf0e560d7d5b69d37dc665fd9e571b294..52b279b7b030264e9135564fad27df81d65b4095 100644
(file)
--- a/
sound/core/seq/seq_ports.c
+++ b/
sound/core/seq/seq_ports.c
@@
-134,7
+134,7
@@
struct snd_seq_client_port *snd_seq_create_port(struct snd_seq_client *client,
if (snd_BUG_ON(!client))
return NULL;
- if (client->num_ports >= SNDRV_SEQ_MAX_PORTS
- 1
) {
+ if (client->num_ports >= SNDRV_SEQ_MAX_PORTS) {
pr_warn("ALSA: seq: too many ports for client %d\n", client->number);
return NULL;
}