summaryrefslogtreecommitdiffstats
path: root/sys/kern/vfs_bio.c
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1999-03-19 10:17:44 +0000
committerbde <bde@FreeBSD.org>1999-03-19 10:17:44 +0000
commit9dfb67dcc52a615300d6627d4db6529fd0eeb917 (patch)
tree7cc300a39ed29f80f9faeaf969a0283e4e0efe79 /sys/kern/vfs_bio.c
parent042cb8af300068856872ee0e8ad07e49f405ef51 (diff)
downloadFreeBSD-src-9dfb67dcc52a615300d6627d4db6529fd0eeb917.zip
FreeBSD-src-9dfb67dcc52a615300d6627d4db6529fd0eeb917.tar.gz
Fixed a serious bug in rev.1.202. getnewbuf() sometimes didn't
initialise bp->b_data. This tended to cause panics for file systems whose block size is smaller than one page.
Diffstat (limited to 'sys/kern/vfs_bio.c')
-rw-r--r--sys/kern/vfs_bio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/vfs_bio.c b/sys/kern/vfs_bio.c
index 76f14b2..1741488 100644
--- a/sys/kern/vfs_bio.c
+++ b/sys/kern/vfs_bio.c
@@ -11,7 +11,7 @@
* 2. Absolutely no warranty of function or purpose is made by the author
* John S. Dyson.
*
- * $Id: vfs_bio.c,v 1.201 1999/03/02 21:23:38 julian Exp $
+ * $Id: vfs_bio.c,v 1.202 1999/03/12 02:24:56 julian Exp $
*/
/*
@@ -1433,8 +1433,8 @@ dosleep:
bp->b_kvabase = (caddr_t) addr;
bp->b_kvasize = maxsize;
- bp->b_data = bp->b_kvabase;
}
+ bp->b_data = bp->b_kvabase;
}
return (bp);
OpenPOWER on IntegriCloud