mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
vfs: fix off-by-one error in vfs_buf_check_mapped
The check added in r285872 can trigger for valid buffers if the buffer space used happens to be just after unmapped_buf in KVA space. Discussed with: kib Sponsored by: Citrix Systems R&D
This commit is contained in:
parent
bc38441579
commit
8f89a299e2
1 changed files with 1 additions and 1 deletions
|
|
@ -955,7 +955,7 @@ vfs_buf_check_mapped(struct buf *bp)
|
|||
("mapped buf: b_kvabase was not updated %p", bp));
|
||||
KASSERT(bp->b_data != unmapped_buf,
|
||||
("mapped buf: b_data was not updated %p", bp));
|
||||
KASSERT(bp->b_data < unmapped_buf || bp->b_data > unmapped_buf +
|
||||
KASSERT(bp->b_data < unmapped_buf || bp->b_data => unmapped_buf +
|
||||
MAXPHYS, ("b_data + b_offset unmapped %p", bp));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue