linux_old1/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
..
Kconfig usb: wusbcore: USB_WUSB_CBAF depends on USB 2014-09-23 22:06:33 -07:00
Makefile usb: makefile cleanup 2010-10-22 10:22:07 -07:00
cbaf.c USB: wusbcore: fix up minor coding style issues in cbaf.c 2014-01-07 16:18:42 -08:00
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
mmc.c usb: wusbcore: fix panic in wusbhc_chid_set 2014-04-24 12:45:41 -07:00
pal.c usb: wusbcore: add debug prints to reservation and channel change 2013-12-20 12:06:46 -08:00
reservation.c usb: wusbcore: add debug prints to reservation and channel change 2013-12-20 12:06:46 -08:00
rh.c wusbcore: fix root hub hub_status_data to only return > 0 if status has actually changed 2013-08-12 13:13:32 -07:00
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 USB: wusbcore: fix up coding style issues in wa-nep.c 2014-01-07 16:19:31 -08:00
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 USB: wusbcore: fix up coding style issues in wusbhc.c and wusbhc.h 2014-01-07 16:19:31 -08:00
wusbhc.h usb: wusbcore: fix device disconnect on rekey timeout 2014-09-23 22:06:59 -07:00