aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/tty/serial/sccnxp.c
diff options
context:
space:
mode:
authorJulia Lawall <[email protected]>2014-11-30 17:03:49 +0000
committerGreg Kroah-Hartman <[email protected]>2014-12-03 00:15:02 +0000
commiteb94ec7a6516cd1dc52c0f63d7c3a274e6337416 (patch)
treedea11e9e5f49de50fbb38e982b3fad742b90d7d4 /drivers/tty/serial/sccnxp.c
parentusbip: remove unneeded structure (diff)
downloadkernel-eb94ec7a6516cd1dc52c0f63d7c3a274e6337416.tar.gz
kernel-eb94ec7a6516cd1dc52c0f63d7c3a274e6337416.zip
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/) // <smpl> @@ identifier x; type T; @@ { ... when any T x[...]; ... when any when exists - memset + memzero_explicit (x, -0, ...) ... when != x when strict } // </smpl> This change was suggested by Daniel Borkmann <[email protected]> Signed-off-by: Julia Lawall <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/tty/serial/sccnxp.c')
0 files changed, 0 insertions, 0 deletions