Module Name: src Committed By: skrll Date: Tue Nov 19 10:07:11 UTC 2013
Modified Files: src/sys/external/bsd/dwc2: dwc2.c Log Message: Zeroise the whole urb including the iso_descs array To generate a diff of this commit: cvs rdiff -u -r1.19 -r1.20 src/sys/external/bsd/dwc2/dwc2.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/external/bsd/dwc2/dwc2.c diff -u src/sys/external/bsd/dwc2/dwc2.c:1.19 src/sys/external/bsd/dwc2/dwc2.c:1.20 --- src/sys/external/bsd/dwc2/dwc2.c:1.19 Tue Nov 19 07:50:01 2013 +++ src/sys/external/bsd/dwc2/dwc2.c Tue Nov 19 10:07:11 2013 @@ -1,4 +1,4 @@ -/* $NetBSD: dwc2.c,v 1.19 2013/11/19 07:50:01 skrll Exp $ */ +/* $NetBSD: dwc2.c,v 1.20 2013/11/19 10:07:11 skrll Exp $ */ /*- * Copyright (c) 2013 The NetBSD Foundation, Inc. @@ -30,7 +30,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: dwc2.c,v 1.19 2013/11/19 07:50:01 skrll Exp $"); +__KERNEL_RCSID(0, "$NetBSD: dwc2.c,v 1.20 2013/11/19 10:07:11 skrll Exp $"); #include "opt_usb.h" @@ -1294,7 +1294,8 @@ dwc2_device_start(usbd_xfer_handle xfer) if (!dwc2_urb) return USBD_NOMEM; - memset(dwc2_urb, 0, sizeof(*dwc2_urb)); + memset(dwc2_urb, 0, sizeof(*dwc2_urb) + + sizeof(dwc2_urb->iso_descs[0]) * DWC2_MAXISOCPACKETS); dwc2_urb->priv = xfer; dwc2_hcd_urb_set_pipeinfo(hsotg, dwc2_urb, addr, epnum, xfertype, dir,