aboutsummaryrefslogtreecommitdiff
path: root/lib/cpu-notifier-error-inject.c
diff options
context:
space:
mode:
authorJulia Lawall <[email protected]>2009-12-09 20:26:18 +0100
committerIngo Molnar <[email protected]>2009-12-10 08:30:26 +0100
commit5660ce34241ab204bf78fbcaa5e09318c2748d37 (patch)
treee1b8529e702fafd53e0097b5250edb578a23b396 /lib/cpu-notifier-error-inject.c
parent21140f4d3387aa2213f1deea0128df1dbf924379 (diff)
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 <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Paul Mackerras <[email protected]> LKML-Reference: <[email protected]> Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'lib/cpu-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions