lkml.org 
[lkml]   [2008]   [Sep]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[patch 33/42] sparc64: Fix overshoot in nid_range().
    2.6.26-stable review patch.  If anyone has any objections, please let us know.

    ------------------

    From: David S. Miller <davem@davemloft.net>

    [ Upstream commit c918dcce92f76bb9903e4d049f4780bad384c207 ]

    If 'start' does not begin on a page boundary, we can overshoot
    past 'end'.

    Signed-off-by: David S. Miller <davem@davemloft.net>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

    ---
    arch/sparc64/mm/init.c | 3 +++
    1 file changed, 3 insertions(+)

    --- a/arch/sparc64/mm/init.c
    +++ b/arch/sparc64/mm/init.c
    @@ -842,6 +842,9 @@ static unsigned long nid_range(unsigned
    start += PAGE_SIZE;
    }

    + if (start > end)
    + start = end;
    +
    return start;
    }
    #else
    --


    \
     
     \ /
      Last update: 2008-09-03 19:47    [W:0.023 / U:1.344 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site