From: Julia Lawall Date: Thu, 10 Dec 2009 20:17:49 +0000 (-0300) Subject: V4L/DVB (13611): radio-tea5764: Correct size given to memset X-Git-Tag: v2.6.33-rc1~70^2~56 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=909d15a70d6a269ba599c539c55a574482355ff1;p=pandora-kernel.git V4L/DVB (13611): radio-tea5764: 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: Douglas Schilling Landgraf Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed