tmp_suning_uos_patched/drivers/usb/wusbcore
Julia Lawall eb94ec7a65 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 <dborkman@redhat.com>

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-12-02 16:15:02 -08:00
..
cbaf.c
crypto.c
dev-sysfs.c wusb: replace memset by memzero_explicit 2014-12-02 16:15:02 -08:00
devconnect.c usb: hub: rename khubd to hub_wq in documentation and comments 2014-09-23 22:33:19 -07:00
Kconfig usb: wusbcore: USB_WUSB_CBAF depends on USB 2014-09-23 22:06:33 -07:00
Makefile
mmc.c
pal.c
reservation.c
rh.c
security.c wusb: replace memset by memzero_explicit 2014-12-02 16:15:02 -08:00
wa-hc.c
wa-hc.h usb: hub: rename khubd to hub_wq in documentation and comments 2014-09-23 22:33:19 -07:00
wa-nep.c
wa-rpipe.c
wa-xfer.c usb: wusbcore: skip done segs before completing aborted transfer 2014-09-23 22:06:59 -07:00
wusbhc.c
wusbhc.h usb: wusbcore: fix device disconnect on rekey timeout 2014-09-23 22:06:59 -07:00