Module Name: src
Committed By: skrll
Date: Mon Nov 4 08:08:58 UTC 2013
Modified Files:
src/sys/dev/usb: xhci.c
Log Message:
PR/48366 Always zero the allocated memory in xhci_alloc, not just in
DIAGNOSTIC.
To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/sys/dev/usb/xhci.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/dev/usb/xhci.c
diff -u src/sys/dev/usb/xhci.c:1.5 src/sys/dev/usb/xhci.c:1.6
--- src/sys/dev/usb/xhci.c:1.5 Mon Oct 28 17:49:33 2013
+++ src/sys/dev/usb/xhci.c Mon Nov 4 08:08:58 2013
@@ -1,4 +1,4 @@
-/* $NetBSD: xhci.c,v 1.5 2013/10/28 17:49:33 matt Exp $ */
+/* $NetBSD: xhci.c,v 1.6 2013/11/04 08:08:58 skrll Exp $ */
/*
* Copyright (c) 2013 Jonathan A. Kollasch
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: xhci.c,v 1.5 2013/10/28 17:49:33 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: xhci.c,v 1.6 2013/11/04 08:08:58 skrll Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -1366,8 +1366,8 @@ xhci_allocx(struct usbd_bus *bus)
xfer = pool_cache_get(sc->sc_xferpool, PR_NOWAIT);
if (xfer != NULL) {
-#ifdef DIAGNOSTIC
memset(xfer, 0, sizeof(struct xhci_xfer));
+#ifdef DIAGNOSTIC
xfer->busy_free = XFER_BUSY;
#endif
}