Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/uvm Omitted assigning handle return value for the case:



details:   https://anonhg.NetBSD.org/src/rev/d8677c3154e6
branches:  trunk
changeset: 819920:d8677c3154e6
user:      cherry <cherry%NetBSD.org@localhost>
date:      Fri Dec 23 07:42:32 2016 +0000

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

Fix this.

diffstat:

 sys/uvm/uvm_physseg.c |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (17 lines):

diff -r 89aca4e8b2fb -r d8677c3154e6 sys/uvm/uvm_physseg.c
--- a/sys/uvm/uvm_physseg.c     Fri Dec 23 07:40:05 2016 +0000
+++ b/sys/uvm/uvm_physseg.c     Fri Dec 23 07:42:32 2016 +0000
@@ -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 @@
 #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;



Home | Main Index | Thread Index | Old Index