Module Name:    src
Committed By:   cherry
Date:           Fri Dec 23 07:42:32 UTC 2016

Modified Files:
        src/sys/uvm: uvm_physseg.c

Log Message:
Omitted assigning handle return value for the case:
(VM_PHYSSEG_STRAT == VM_PSTRAT_RANDOM)

Fix this.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sys/uvm/uvm_physseg.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/uvm/uvm_physseg.c
diff -u src/sys/uvm/uvm_physseg.c:1.2 src/sys/uvm/uvm_physseg.c:1.3
--- src/sys/uvm/uvm_physseg.c:1.2	Thu Dec 22 08:15:20 2016
+++ src/sys/uvm/uvm_physseg.c	Fri Dec 23 07:42:32 2016
@@ -1,4 +1,4 @@
-/* $NetBSD: uvm_physseg.c,v 1.2 2016/12/22 08:15:20 cherry Exp $ */
+/* $NetBSD: uvm_physseg.c,v 1.3 2016/12/23 07:42:32 cherry Exp $ */
 
 /*
  * Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -818,6 +818,7 @@ uvm_physseg_plug(paddr_t pfn, size_t pag
 #if (VM_PHYSSEG_STRAT == VM_PSTRAT_RANDOM)
 	/* random: put it at the end (easy!) */
 	ps = VM_PHYSMEM_PTR(vm_nphysmem);
+	lcv = vm_nphysmem;
 #elif (VM_PHYSSEG_STRAT == VM_PSTRAT_BSEARCH)
 	{
 		int x;

Reply via email to