Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sparc/stand/ofwboot Zero the block on failure, not ...
details: https://anonhg.NetBSD.org/src/rev/8f56f3f097d4
branches: trunk
changeset: 326851:8f56f3f097d4
user: joerg <joerg%NetBSD.org@localhost>
date: Thu Feb 20 15:11:36 2014 +0000
description:
Zero the block on failure, not just the first pointer in it.
diffstat:
sys/arch/sparc/stand/ofwboot/ofdev.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r fb117257a8db -r 8f56f3f097d4 sys/arch/sparc/stand/ofwboot/ofdev.c
--- a/sys/arch/sparc/stand/ofwboot/ofdev.c Thu Feb 20 14:50:39 2014 +0000
+++ b/sys/arch/sparc/stand/ofwboot/ofdev.c Thu Feb 20 15:11:36 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ofdev.c,v 1.34 2013/04/16 07:45:37 martin Exp $ */
+/* $NetBSD: ofdev.c,v 1.35 2014/02/20 15:11:36 joerg Exp $ */
/*
* Copyright (C) 1995, 1996 Wolfgang Solfrank.
@@ -353,7 +353,7 @@
return (disklabel_sun_to_bsd(buf, lp));
- memset(buf, 0, sizeof(buf));
+ memset(buf, 0, DEV_BSIZE);
return ("no disk label");
}
Home |
Main Index |
Thread Index |
Old Index