diff options
author | Julia Lawall <julia@diku.dk> | 2009-12-09 19:26:18 (GMT) |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-12-10 07:30:26 (GMT) |
commit | 5660ce34241ab204bf78fbcaa5e09318c2748d37 (patch) | |
tree | e1b8529e702fafd53e0097b5250edb578a23b396 /.mailmap | |
parent | 21140f4d3387aa2213f1deea0128df1dbf924379 (diff) | |
download | linux-fsl-qoriq-5660ce34241ab204bf78fbcaa5e09318c2748d37.tar.xz |
perf tools: Correct size given to memset
Memset should be given the size of the structure, not the size
of the pointer.
The semantic patch that makes this change is as follows:
(http://coccinelle.lip6.fr/)
// <smpl>
@@
type T;
T *x;
expression E;
@@
memset(x, E, sizeof(
+ *
x))
// </smpl>
Signed-off-by: Julia Lawall <julia@diku.dk>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Paul Mackerras <paulus@samba.org>
LKML-Reference: <Pine.LNX.4.64.0912092026000.1870@ask.diku.dk>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to '.mailmap')
0 files changed, 0 insertions, 0 deletions