]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - sound/isa/gus/gus_mem.c
ALSA: sound/isa/gus: Correct code taking the size of a pointer
[karo-tx-linux.git] / sound / isa / gus / gus_mem.c
index 661205c4dceab85b97dc6693067dd17a888c4b7f..af888a022fc0807a8011a3b28f1738c6f07723de 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;
 }