From: Julia Lawall Date: Fri, 5 Mar 2010 21:44:23 +0000 (-0800) Subject: rtc-at91sam9: Correct size given to memset X-Git-Tag: v2.6.34-rc1~45 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=870a2761a8df7dea7449b4225c9babcf22c6ead4;p=pandora-kernel.git rtc-at91sam9: 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 Signed-off-by: Alessandro Zummo Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed