aboutsummaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
Diffstat (limited to 'sound')
-rw-r--r--sound/core/pcm_lib.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sound/core/pcm_lib.c b/sound/core/pcm_lib.c
index b336797be4fc..9fefcaa2c324 100644
--- a/sound/core/pcm_lib.c
+++ b/sound/core/pcm_lib.c
@@ -781,6 +781,11 @@ int snd_interval_list(struct snd_interval *i, unsigned int count, unsigned int *
781{ 781{
782 unsigned int k; 782 unsigned int k;
783 int changed = 0; 783 int changed = 0;
784
785 if (!count) {
786 i->empty = 1;
787 return -EINVAL;
788 }
784 for (k = 0; k < count; k++) { 789 for (k = 0; k < count; k++) {
785 if (mask && !(mask & (1 << k))) 790 if (mask && !(mask & (1 << k)))
786 continue; 791 continue;