dev_bsize wasn't initialized. The actual value doesn't matter since

the same value is used to compute byte offsets into the special file
but a value of zero causes a division by zero.
This commit is contained in:
mlelstv 2010-02-21 16:24:21 +00:00
parent 41cdcf2f2e
commit d3dff438aa
1 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: lfs.c,v 1.32 2010/02/16 23:20:30 mlelstv Exp $ */
/* $NetBSD: lfs.c,v 1.33 2010/02/21 16:24:21 mlelstv Exp $ */
/*-
* Copyright (c) 2003 The NetBSD Foundation, Inc.
* All rights reserved.
@ -102,7 +102,7 @@ extern struct uvnodelst vnodelist;
extern struct uvnodelst getvnodelist[VNODE_HASH_MAX];
extern int nvnodes;
long dev_bsize;
long dev_bsize = DEV_BSIZE;
static int
lfs_fragextend(struct uvnode *, int, int, daddr_t, struct ubuf **);