diff options
| author | Julia Lawall <[email protected]> | 2011-09-16 08:57:33 +0200 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2011-09-16 20:49:18 +0200 |
| commit | c0569981b343a8cb848852a3ebd68bc07b64d873 (patch) | |
| tree | a1810fa80f2dddf1616578ddaab3713e5feaf0dd /tools/perf/scripts/python | |
| parent | 661d3bf652c0b8eca6f40f2e308b5a719307dd56 (diff) | |
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 <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions