aboutsummaryrefslogtreecommitdiffstats
path: root/lib/raid6/algos.c
diff options
context:
space:
mode:
authorRoss Stutterheim <[email protected]>2025-04-16 13:50:06 +0000
committerRussell King (Oracle) <[email protected]>2025-04-16 15:27:18 +0000
commit96e0b355883006554a0bee3697da475971d6bba8 (patch)
tree7ab340e57966aa6e7b2b2f359ff0f93a8a344003 /lib/raid6/algos.c
parentLinux 6.15-rc1 (diff)
downloadkernel-96e0b355883006554a0bee3697da475971d6bba8.tar.gz
kernel-96e0b355883006554a0bee3697da475971d6bba8.zip
ARM: 9447/1: arm/memremap: fix arch_memremap_can_ram_remap()
arm/memremap: fix arch_memremap_can_ram_remap() commit 260364d112bc ("arm[64]/memremap: don't abuse pfn_valid() to ensure presence of linear map") added the definition of arch_memremap_can_ram_remap() for arm[64] specific filtering of what pages can be used from the linear mapping. memblock_is_map_memory() was called with the pfn of the address given to arch_memremap_can_ram_remap(); however, memblock_is_map_memory() expects to be given an address for arm, not a pfn. This results in calls to memremap() returning a newly mapped area when it should return an address in the existing linear mapping. Fix this by removing the address to pfn translation and pass the address directly. Fixes: 260364d112bc ("arm[64]/memremap: don't abuse pfn_valid() to ensure presence of linear map") Signed-off-by: Ross Stutterheim <[email protected]> Cc: Mike Rapoport <[email protected]> Cc: [email protected] Reviewed-by: Catalin Marinas <[email protected]> Reviewed-by: Linus Walleij <[email protected]> Signed-off-by: Russell King (Oracle) <[email protected]>
Diffstat (limited to 'lib/raid6/algos.c')
0 files changed, 0 insertions, 0 deletions