diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1999-04-25 00:36:48 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1999-04-25 00:36:48 +0000 |
commit | d2569be355e0afffad1042bf64acfdd7bc2bfe6d (patch) | |
tree | 84f1c156a7eb9e6e26b5ece0be797ab862bc0111 /sys/ufs/ext2fs/ext2fs_bmap.c | |
parent | 39997d3b7e54c5a8032076ac8e2ee4ff08635a5b (diff) |
Reading large file from ext2fs caused vm_fault; gluk@ecsc.mipt.ru
Approved by csapuntz@openbsd.org
Diffstat (limited to 'sys/ufs/ext2fs/ext2fs_bmap.c')
-rw-r--r-- | sys/ufs/ext2fs/ext2fs_bmap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/ufs/ext2fs/ext2fs_bmap.c b/sys/ufs/ext2fs/ext2fs_bmap.c index d64eddf39d6..ce8dfa15968 100644 --- a/sys/ufs/ext2fs/ext2fs_bmap.c +++ b/sys/ufs/ext2fs/ext2fs_bmap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ext2fs_bmap.c,v 1.3 1997/06/12 21:09:31 downsj Exp $ */ +/* $OpenBSD: ext2fs_bmap.c,v 1.4 1999/04/25 00:36:46 millert Exp $ */ /* $NetBSD: ext2fs_bmap.c,v 1.1 1997/06/11 09:33:46 bouyer Exp $ */ /* @@ -120,7 +120,7 @@ ext2fs_bmaparray(vp, bn, bnp, ap, nump, runp) struct ufsmount *ump; struct mount *mp; struct vnode *devvp; - struct indir a[NIADDR], *xap; + struct indir a[NIADDR+1], *xap; daddr_t daddr; long metalbn; int error, maxrun = 0, num; |