diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2001-11-29 02:08:23 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2001-11-29 02:08:23 +0000 |
commit | aafd1bdc0e7f44706a6c05a547e0227505c7781a (patch) | |
tree | 129e9adfb013c7329981492b86473d339f0fef7b /sys/kern | |
parent | 9cc42e5abb54cc95f0b1a1c58a0f0119d2cfc0f2 (diff) |
Make sure the whole buffer is initialized before calling bgetvp.
Recommended by csapuntz@
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/vfs_default.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/vfs_default.c b/sys/kern/vfs_default.c index 89b1edee6a6..d008aba0629 100644 --- a/sys/kern/vfs_default.c +++ b/sys/kern/vfs_default.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vfs_default.c,v 1.9 2001/11/29 01:58:57 art Exp $ */ +/* $OpenBSD: vfs_default.c,v 1.10 2001/11/29 02:08:21 art Exp $ */ /* * Portions of this code are: @@ -530,8 +530,8 @@ genfs_getpages(v) mbp->b_flags = B_BUSY|B_READ| (async ? B_CALL : 0); mbp->b_iodone = uvm_aio_biodone; mbp->b_vp = NULL; - bgetvp(vp, mbp); LIST_INIT(&mbp->b_dep); + bgetvp(vp, mbp); /* * if EOF is in the middle of the range, zero the part past EOF. @@ -892,8 +892,8 @@ genfs_putpages(v) (curproc == uvm.pagedaemon_proc ? B_PDAEMON : 0); mbp->b_iodone = uvm_aio_biodone; mbp->b_vp = NULL; - bgetvp(vp, mbp); LIST_INIT(&mbp->b_dep); + bgetvp(vp, mbp); bp = NULL; for (offset = startoffset; |