Module Name: src
Committed By: christos
Date: Sat Sep 27 15:44:27 UTC 2014
Modified Files:
src/sys/dev/pci: twa.c
Log Message:
fix size in memset() parameter. Thanks max.
To generate a diff of this commit:
cvs rdiff -u -r1.51 -r1.52 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.51 src/sys/dev/pci/twa.c:1.52
--- src/sys/dev/pci/twa.c:1.51 Sun Sep 21 13:11:07 2014
+++ src/sys/dev/pci/twa.c Sat Sep 27 11:44:27 2014
@@ -1,4 +1,4 @@
-/* $NetBSD: twa.c,v 1.51 2014/09/21 17:11:07 christos Exp $ */
+/* $NetBSD: twa.c,v 1.52 2014/09/27 15:44:27 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.51 2014/09/21 17:11:07 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: twa.c,v 1.52 2014/09/27 15:44:27 christos Exp $");
//#define TWA_DEBUG
@@ -2955,7 +2955,7 @@ twa_describe_controller(struct twa_softc
uint32_t dsize;
uint8_t ports;
- memset(p, 0, sizeof(*p));
+ memset(p, 0, sizeof(p));
/* Get the port count. */
rv |= twa_get_param(sc, TWA_PARAM_CONTROLLER,