mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-16 10:20:30 +00:00
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.
This commit is contained in:
parent
4a948cab8b
commit
96ebc5810b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=44893
@ -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 @@ getnewbuf(struct vnode *vp, daddr_t blkno,
|
||||
|
||||
bp->b_kvabase = (caddr_t) addr;
|
||||
bp->b_kvasize = maxsize;
|
||||
bp->b_data = bp->b_kvabase;
|
||||
}
|
||||
bp->b_data = bp->b_kvabase;
|
||||
}
|
||||
|
||||
return (bp);
|
||||
|
Loading…
Reference in New Issue
Block a user