Module Name: src Committed By: joerg Date: Thu Feb 20 15:11:36 UTC 2014
Modified Files: src/sys/arch/sparc/stand/ofwboot: ofdev.c Log Message: Zero the block on failure, not just the first pointer in it. To generate a diff of this commit: cvs rdiff -u -r1.34 -r1.35 src/sys/arch/sparc/stand/ofwboot/ofdev.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/arch/sparc/stand/ofwboot/ofdev.c diff -u src/sys/arch/sparc/stand/ofwboot/ofdev.c:1.34 src/sys/arch/sparc/stand/ofwboot/ofdev.c:1.35 --- src/sys/arch/sparc/stand/ofwboot/ofdev.c:1.34 Tue Apr 16 07:45:37 2013 +++ src/sys/arch/sparc/stand/ofwboot/ofdev.c Thu Feb 20 15:11:36 2014 @@ -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 @@ search_label(struct of_dev *devp, u_long return (disklabel_sun_to_bsd(buf, lp)); - memset(buf, 0, sizeof(buf)); + memset(buf, 0, DEV_BSIZE); return ("no disk label"); }