From: Julia Lawall Date: Wed, 9 Dec 2009 19:26:18 +0000 (+0100) Subject: perf tools: Correct size given to memset X-Git-Tag: v2.6.33-rc1~306^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5660ce34241ab204bf78fbcaa5e09318c2748d37;p=pandora-kernel.git 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/) // @@ type T; T *x; expression E; @@ memset(x, E, sizeof( + * x)) // Signed-off-by: Julia Lawall Cc: Peter Zijlstra Cc: Paul Mackerras LKML-Reference: Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed