• Russell King's avatar
    [ARM] Tighten pfn_valid() test. · 1b3cb73f
    Russell King authored
    Thomas Gleixner reported that mmaping and unmapping each physical
    page in turn eventually caused the kernel to oops.  It appears
    that pfn_valid() in the discontigmem case was too simplistic for
    proper operation.
    
    Tighten the logic so we also check if the PFN is within the range
    of the selected memory node.
    Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
    1b3cb73f
memory.h 6.12 KB