From: Julia Lawall Date: Sun, 13 Dec 2009 11:42:56 +0000 (+0100) Subject: ALSA: sound/isa/gus: Correct code taking the size of a pointer X-Git-Tag: v2.6.33-rc1~77^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0d64b568fcd48b133721c1d322e7c51d85eb12df;p=pandora-kernel.git ALSA: sound/isa/gus: Correct code taking the size of a pointer sizeof(share_id) is just the size of the pointer. On the other hand, block->share_id is an array, so its size seems more appropriate. A simplified version of the semantic patch that finds this problem is as follows: (http://coccinelle.lip6.fr/) // @@ expression *x; expression f; type T; @@ *f(...,(T)x,...) // Signed-off-by: Julia Lawall Signed-off-by: Takashi Iwai --- Reading git-diff-tree failed