]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - sound/core/pcm_lib.c
Merge branch 'trivial-2.6.23' of git://git.kernel.dk/data/git/linux-2.6-block
[linux-2.6-omap-h63xx.git] / sound / core / pcm_lib.c
index b336797be4fc877f4cd2ff0e8fa1e9e184ff2774..9fefcaa2c324e5a4c740a9653945185a212e5374 100644 (file)
@@ -781,6 +781,11 @@ int snd_interval_list(struct snd_interval *i, unsigned int count, unsigned int *
 {
         unsigned int k;
        int changed = 0;
+
+       if (!count) {
+               i->empty = 1;
+               return -EINVAL;
+       }
         for (k = 0; k < count; k++) {
                if (mask && !(mask & (1 << k)))
                        continue;