Merge branch 'fixes' of git://git.alsa-project.org/alsa-kernel into for-linus
authorTakashi Iwai <tiwai@suse.de>
Tue, 15 Dec 2009 09:29:06 +0000 (10:29 +0100)
committerTakashi Iwai <tiwai@suse.de>
Tue, 15 Dec 2009 09:29:06 +0000 (10:29 +0100)
sound/isa/gus/gus_mem.c

index 661205c..af888a0 100644 (file)
@@ -127,7 +127,8 @@ static struct snd_gf1_mem_block *snd_gf1_mem_share(struct snd_gf1_mem * alloc,
            !share_id[2] && !share_id[3])
                return NULL;
        for (block = alloc->first; block; block = block->next)
-               if (!memcmp(share_id, block->share_id, sizeof(share_id)))
+               if (!memcmp(share_id, block->share_id,
+                               sizeof(block->share_id)))
                        return block;
        return NULL;
 }