Module Name: src Committed By: christos Date: Sun Sep 21 17:11:07 UTC 2014
Modified Files: src/sys/dev/pci: twa.c Log Message: fix memset size inconsistency To generate a diff of this commit: cvs rdiff -u -r1.50 -r1.51 src/sys/dev/pci/twa.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/pci/twa.c diff -u src/sys/dev/pci/twa.c:1.50 src/sys/dev/pci/twa.c:1.51 --- src/sys/dev/pci/twa.c:1.50 Fri Jul 25 04:10:38 2014 +++ src/sys/dev/pci/twa.c Sun Sep 21 13:11:07 2014 @@ -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 @@ twa_describe_controller(struct twa_softc 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,