Module Name: src Committed By: msaitoh Date: Thu Jul 25 04:21:47 UTC 2013
Modified Files: src/sys/dev/ic: mm58167.c Log Message: Clear memory as intended. Fixes PR#46372. To generate a diff of this commit: cvs rdiff -u -r1.14 -r1.15 src/sys/dev/ic/mm58167.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/ic/mm58167.c diff -u src/sys/dev/ic/mm58167.c:1.14 src/sys/dev/ic/mm58167.c:1.15 --- src/sys/dev/ic/mm58167.c:1.14 Sat Dec 12 16:12:05 2009 +++ src/sys/dev/ic/mm58167.c Thu Jul 25 04:21:47 2013 @@ -1,4 +1,4 @@ -/* $NetBSD: mm58167.c,v 1.14 2009/12/12 16:12:05 tsutsui Exp $ */ +/* $NetBSD: mm58167.c,v 1.15 2013/07/25 04:21:47 msaitoh Exp $ */ /* * Copyright (c) 2001 The NetBSD Foundation, Inc. @@ -34,7 +34,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: mm58167.c,v 1.14 2009/12/12 16:12:05 tsutsui Exp $"); +__KERNEL_RCSID(0, "$NetBSD: mm58167.c,v 1.15 2013/07/25 04:21:47 msaitoh Exp $"); #include <sys/param.h> #include <sys/malloc.h> @@ -68,7 +68,7 @@ mm58167_attach(struct mm58167_softc *sc) aprint_normal(": mm58167"); handle = &sc->_mm58167_todr_handle; - memset(handle, 0, sizeof(handle)); + memset(handle, 0, sizeof(*handle)); handle->cookie = sc; handle->todr_gettime_ymdhms = mm58167_gettime_ymdhms; handle->todr_settime_ymdhms = mm58167_settime_ymdhms;