1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-12 09:58:36 +00:00

Initialize b_saveaddr when we hand out pbufs

This commit is contained in:
Poul-Henning Kamp 2003-06-20 08:35:28 +00:00
parent 568733688b
commit adece6e592
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=116605

View File

@ -341,8 +341,9 @@ initpbuf(struct buf *bp)
bp->b_rcred = NOCRED;
bp->b_wcred = NOCRED;
bp->b_qindex = 0; /* On no queue (QUEUE_NONE) */
bp->b_data = (caddr_t) (MAXPHYS * (bp - swbuf)) + swapbkva;
bp->b_kvabase = bp->b_data;
bp->b_saveaddr = (caddr_t) (MAXPHYS * (bp - swbuf)) + swapbkva;
bp->b_data = bp->b_saveaddr;
bp->b_kvabase = bp->b_saveaddr;
bp->b_kvasize = MAXPHYS;
bp->b_xflags = 0;
bp->b_flags = 0;