summaryrefslogtreecommitdiff
path: root/arch/microblaze
diff options
context:
space:
mode:
authorJulia Lawall <julia@diku.dk>2011-09-16 06:57:33 (GMT)
committerGreg Kroah-Hartman <gregkh@suse.de>2011-09-16 18:49:18 (GMT)
commitc0569981b343a8cb848852a3ebd68bc07b64d873 (patch)
treea1810fa80f2dddf1616578ddaab3713e5feaf0dd /arch/microblaze
parent661d3bf652c0b8eca6f40f2e308b5a719307dd56 (diff)
downloadlinux-fsl-qoriq-c0569981b343a8cb848852a3ebd68bc07b64d873.tar.xz
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/) // <smpl> @@ expression *e; type T; identifier f; @@ f(...,(T)e,..., -sizeof(e) +sizeof(*e) ,...) // </smpl> Signed-off-by: Julia Lawall <julia@diku.dk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'arch/microblaze')
0 files changed, 0 insertions, 0 deletions