From: Julia Lawall Date: Fri, 16 Sep 2011 06:57:34 +0000 (+0200) Subject: [SCSI] mpt2sas: take size of pointed value, not pointer X-Git-Tag: v3.2-rc1~125^2~90 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=96a99501d6ba0292ea7bd96846053091fc20776c;p=pandora-kernel.git [SCSI] mpt2sas: 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: James Bottomley --- Reading git-diff-tree failed