Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 5 Mar 2019 08:33:14 +0000 (UTC)
From:      "Jason A. Harmening" <jah@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org
Subject:   svn commit: r344792 - stable/12/sys/vm
Message-ID:  <201903050833.x258XE41029559@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jah
Date: Tue Mar  5 08:33:14 2019
New Revision: 344792
URL: https://svnweb.freebsd.org/changeset/base/344792

Log:
  MFC r344561:
  
  Fix incorrect assertion in vnode_pager_generic_getpages()

Modified:
  stable/12/sys/vm/vnode_pager.c
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/sys/vm/vnode_pager.c
==============================================================================
--- stable/12/sys/vm/vnode_pager.c	Tue Mar  5 04:16:50 2019	(r344791)
+++ stable/12/sys/vm/vnode_pager.c	Tue Mar  5 08:33:14 2019	(r344792)
@@ -774,7 +774,7 @@ vnode_pager_generic_getpages(struct vnode *vp, vm_page
 
 	KASSERT(foff < object->un_pager.vnp.vnp_size,
 	    ("%s: page %p offset beyond vp %p size", __func__, m[0], vp));
-	KASSERT(count <= sizeof(bp->b_pages),
+	KASSERT(count <= nitems(bp->b_pages),
 	    ("%s: requested %d pages", __func__, count));
 
 	/*



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201903050833.x258XE41029559>