Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/dmover Clear struct stat correctly. Fixes PR#46373.



details:   https://anonhg.NetBSD.org/src/rev/709de84dc0e6
branches:  trunk
changeset: 788861:709de84dc0e6
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Thu Jul 25 04:32:37 2013 +0000

description:
Clear struct stat correctly. Fixes PR#46373.

diffstat:

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

diffs (27 lines):

diff -r e9b50b2b8506 -r 709de84dc0e6 sys/dev/dmover/dmover_io.c
--- a/sys/dev/dmover/dmover_io.c        Thu Jul 25 04:21:47 2013 +0000
+++ b/sys/dev/dmover/dmover_io.c        Thu Jul 25 04:32:37 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: dmover_io.c,v 1.40 2011/05/14 13:52:00 jakllsch Exp $  */
+/*     $NetBSD: dmover_io.c,v 1.41 2013/07/25 04:32:37 msaitoh Exp $   */
 
 /*
  * Copyright (c) 2002, 2003 Wasabi Systems, Inc.
@@ -55,7 +55,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: dmover_io.c,v 1.40 2011/05/14 13:52:00 jakllsch Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dmover_io.c,v 1.41 2013/07/25 04:32:37 msaitoh Exp $");
 
 #include <sys/param.h>
 #include <sys/queue.h>
@@ -595,7 +595,7 @@
 {
        struct dmio_state *ds = fp->f_data;
 
-       (void)memset(st, 0, sizeof(st));
+       (void)memset(st, 0, sizeof(*st));
        KERNEL_LOCK(1, NULL);
        st->st_dev = makedev(cdevsw_lookup_major(&dmoverio_cdevsw), 0);
        st->st_atimespec = ds->ds_atime;



Home | Main Index | Thread Index | Old Index