Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Jul 2017 06:54:58 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r321285 - stable/11/sys/amd64/amd64
Message-ID:  <201707200654.v6K6swaP080500@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kib
Date: Thu Jul 20 06:54:58 2017
New Revision: 321285
URL: https://svnweb.freebsd.org/changeset/base/321285

Log:
  MFC r320936,r320937,r320938:
  Fix size argument to vm_pager_allocate().

Modified:
  stable/11/sys/amd64/amd64/efirt.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/amd64/amd64/efirt.c
==============================================================================
--- stable/11/sys/amd64/amd64/efirt.c	Thu Jul 20 06:47:06 2017	(r321284)
+++ stable/11/sys/amd64/amd64/efirt.c	Thu Jul 20 06:54:58 2017	(r321285)
@@ -192,8 +192,8 @@ efi_create_1t1_map(struct efi_md *map, int ndesc, int 
 	uint64_t idx;
 	int bits, i, mode;
 
-	obj_1t1_pt = vm_pager_allocate(OBJT_PHYS, NULL, 1 + NPML4EPG +
-	    NPML4EPG * NPDPEPG + NPML4EPG * NPDPEPG * NPDEPG,
+	obj_1t1_pt = vm_pager_allocate(OBJT_PHYS, NULL, ptoa(1 +
+	    NPML4EPG + NPML4EPG * NPDPEPG + NPML4EPG * NPDPEPG * NPDEPG),
 	    VM_PROT_ALL, 0, NULL);
 	VM_OBJECT_WLOCK(obj_1t1_pt);
 	efi_pml4_page = efi_1t1_page(0);



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