From: Julia Lawall Date: Sun, 30 Nov 2014 17:03:49 +0000 (+0100) Subject: wusb: replace memset by memzero_explicit X-Git-Tag: omap-for-v3.19/fixes-rc1~87^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eb94ec7a6516cd1dc52c0f63d7c3a274e6337416;p=pandora-kernel.git wusb: replace memset by memzero_explicit Memset on a local variable may be removed when it is called just before the variable goes out of scope. Using memzero_explicit defeats this optimization. A simplified version of the semantic patch that makes this change is as follows: (http://coccinelle.lip6.fr/) // @@ identifier x; type T; @@ { ... when any T x[...]; ... when any when exists - memset + memzero_explicit (x, -0, ...) ... when != x when strict } // This change was suggested by Daniel Borkmann Signed-off-by: Julia Lawall Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed