From: Julia Lawall Date: Fri, 16 Sep 2011 06:57:33 +0000 (+0200) Subject: drivers/staging/mei/interface.c: take size of pointed value, not pointer X-Git-Tag: v3.2-rc1~169^2^2~424 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c0569981b343a8cb848852a3ebd68bc07b64d873;p=pandora-kernel.git drivers/staging/mei/interface.c: take size of pointed value, not pointer Sizeof a pointer-typed expression returns the size of the pointer, not that of the pointed data. The semantic patch that fixes this problem is as follows: (http://coccinelle.lip6.fr/) // @@ expression *e; type T; identifier f; @@ f(...,(T)e,..., -sizeof(e) +sizeof(*e) ,...) // Signed-off-by: Julia Lawall Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed