Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/pci fix memset size inconsistency



details:   https://anonhg.NetBSD.org/src/rev/3cbb1cf73ceb
branches:  trunk
changeset: 802600:3cbb1cf73ceb
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Sep 21 17:11:07 2014 +0000

description:
fix memset size inconsistency

diffstat:

 sys/dev/pci/twa.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r d33ce6832b09 -r 3cbb1cf73ceb sys/dev/pci/twa.c
--- a/sys/dev/pci/twa.c Sun Sep 21 17:10:00 2014 +0000
+++ b/sys/dev/pci/twa.c Sun Sep 21 17:11:07 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: twa.c,v 1.50 2014/07/25 08:10:38 dholland Exp $ */
+/*     $NetBSD: twa.c,v 1.51 2014/09/21 17:11:07 christos Exp $ */
 /*     $wasabi: twa.c,v 1.27 2006/07/28 18:17:21 wrstuden Exp $        */
 
 /*-
@@ -67,7 +67,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: twa.c,v 1.50 2014/07/25 08:10:38 dholland Exp $");
+__KERNEL_RCSID(0, "$NetBSD: twa.c,v 1.51 2014/09/21 17:11:07 christos Exp $");
 
 //#define TWA_DEBUG
 
@@ -2955,7 +2955,7 @@
        uint32_t                dsize;
        uint8_t                 ports;
 
-       memset(p, sizeof(struct twa_param_9k *), 10);
+       memset(p, 0, sizeof(*p));
 
        /* Get the port count. */
        rv |= twa_get_param(sc, TWA_PARAM_CONTROLLER,



Home | Main Index | Thread Index | Old Index