Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev fix incorrect memset.
details: https://anonhg.NetBSD.org/src/rev/2f2ca3d8dee4
branches: trunk
changeset: 341567:2f2ca3d8dee4
user: christos <christos%NetBSD.org@localhost>
date: Thu Nov 12 02:06:36 2015 +0000
description:
fix incorrect memset.
diffstat:
sys/dev/vnd.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r e69836f66546 -r 2f2ca3d8dee4 sys/dev/vnd.c
--- a/sys/dev/vnd.c Thu Nov 12 00:43:52 2015 +0000
+++ b/sys/dev/vnd.c Thu Nov 12 02:06:36 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vnd.c,v 1.252 2015/11/09 17:52:59 christos Exp $ */
+/* $NetBSD: vnd.c,v 1.253 2015/11/12 02:06:36 christos Exp $ */
/*-
* Copyright (c) 1996, 1997, 1998, 2008 The NetBSD Foundation, Inc.
@@ -91,7 +91,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vnd.c,v 1.252 2015/11/09 17:52:59 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vnd.c,v 1.253 2015/11/12 02:06:36 christos Exp $");
#if defined(_KERNEL_OPT)
#include "opt_vnd.h"
@@ -1075,7 +1075,7 @@
switch (error = vnd_cget(l, unit, (int *)data, va)) {
case -1:
/* unused is not an error */
- memset(&va, 0, sizeof(va));
+ memset(va, 0, sizeof(*va));
/*FALLTHROUGH*/
case 0:
return 0;
Home |
Main Index |
Thread Index |
Old Index