diff options
author | Julia Lawall <[email protected]> | 2011-09-16 08:57:34 +0200 |
---|---|---|
committer | James Bottomley <[email protected]> | 2011-09-22 15:13:12 +0400 |
commit | 96a99501d6ba0292ea7bd96846053091fc20776c (patch) | |
tree | cccae7f7a2554c6649f77c32e1e102804bc53c8d /tools/perf/scripts/python/syscall-counts-by-pid.py | |
parent | 12b8fc10eaf4e981e9c546d4cfb94d592dc10622 (diff) |
[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/)
// <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: James Bottomley <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts-by-pid.py')
0 files changed, 0 insertions, 0 deletions