linux/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 wusb: delete double assignment 2014-09-23 22:03:54 -07:00
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 usb: wusbcore: fix panic in wusbhc_chid_set 2014-04-24 12:45:41 -07:00
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 usb: wusbcore: use multiple urbs for HWA iso transfer result frame reads 2014-03-08 22:30:28 -08:00
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 USB: wusbcore: fix control-pipe directions 2014-05-27 15:04:10 -07:00
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