Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/usb PR/48366 Always zero the allocated memory in xhc...
details: https://anonhg.NetBSD.org/src/rev/d9ddde7f19d8
branches: trunk
changeset: 791082:d9ddde7f19d8
user: skrll <skrll%NetBSD.org@localhost>
date: Mon Nov 04 08:08:58 2013 +0000
description:
PR/48366 Always zero the allocated memory in xhci_alloc, not just in
DIAGNOSTIC.
diffstat:
sys/dev/usb/xhci.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (28 lines):
diff -r 3d7728951b64 -r d9ddde7f19d8 sys/dev/usb/xhci.c
--- a/sys/dev/usb/xhci.c Mon Nov 04 08:04:18 2013 +0000
+++ b/sys/dev/usb/xhci.c Mon Nov 04 08:08:58 2013 +0000
@@ -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 @@
xfer = pool_cache_get(sc->sc_xferpool, PR_NOWAIT);
if (xfer != NULL) {
+ memset(xfer, 0, sizeof(struct xhci_xfer));
#ifdef DIAGNOSTIC
- memset(xfer, 0, sizeof(struct xhci_xfer));
xfer->busy_free = XFER_BUSY;
#endif
}
Home |
Main Index |
Thread Index |
Old Index