From f60a122b26c06cdb94e191f2a8d09a2496f15246 Mon Sep 17 00:00:00 2001 From: Lu Guanqun Date: Wed, 24 Aug 2011 14:45:10 +0800 Subject: [PATCH] --- yaml --- r: 270414 b: refs/heads/master c: 08ede038a738f22c1b3425051175e1d627d8dd43 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/sound/core/control.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 4d8bbd495c0e..c24075e04bc6 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 983929cafc4225d61f50b3e35cf892606a15bc69 +refs/heads/master: 08ede038a738f22c1b3425051175e1d627d8dd43 diff --git a/trunk/sound/core/control.c b/trunk/sound/core/control.c index 7f2b3a7eabb2..dc2a44048c85 100644 --- a/trunk/sound/core/control.c +++ b/trunk/sound/core/control.c @@ -1073,7 +1073,7 @@ static int snd_ctl_elem_add(struct snd_ctl_file *file, struct user_element *ue; int idx, err; - if (card->user_ctl_count >= MAX_USER_CONTROLS) + if (!replace && card->user_ctl_count >= MAX_USER_CONTROLS) return -ENOMEM; if (info->count < 1) return -EINVAL;