aboutsummaryrefslogtreecommitdiffstats
path: root/mm/sparse.c
diff options
context:
space:
mode:
authorJan H. Schönherr <[email protected]>2018-01-20 00:27:54 +0000
committerDan Williams <[email protected]>2018-01-20 00:29:48 +0000
commit10a0cd6e4932b5078215b1ec2c896597eec0eff9 (patch)
treeebe957829554ccf069566daa5c8ab68e4b346d4a /mm/sparse.c
parentmemremap: merge find_dev_pagemap into get_dev_pagemap (diff)
downloadkernel-10a0cd6e4932b5078215b1ec2c896597eec0eff9.tar.gz
kernel-10a0cd6e4932b5078215b1ec2c896597eec0eff9.zip
mm: Fix memory size alignment in devm_memremap_pages_release()
The functions devm_memremap_pages() and devm_memremap_pages_release() use different ways to calculate the section-aligned amount of memory. The latter function may use an incorrect size if the memory region is small but straddles a section border. Use the same code for both. Cc: <[email protected]> Fixes: 5f29a77cd957 ("mm: fix mixed zone detection in devm_memremap_pages") Signed-off-by: Jan H. Schönherr <[email protected]> Signed-off-by: Dan Williams <[email protected]>
Diffstat (limited to 'mm/sparse.c')
0 files changed, 0 insertions, 0 deletions