Fix incorrect assertion that could miss overflows.
Reviewed by: kib
This commit is contained in:
parent
53dc58f2dc
commit
dcc0ff5a52
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=307654
@ -953,7 +953,7 @@ vnode_pager_generic_getpages(struct vnode *vp, vm_page_t *m, int count,
|
||||
if (a_rahead)
|
||||
*a_rahead = bp->b_pgafter;
|
||||
|
||||
KASSERT(bp->b_npages <= sizeof(bp->b_pages),
|
||||
KASSERT(bp->b_npages <= nitems(bp->b_pages),
|
||||
("%s: buf %p overflowed", __func__, bp));
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user