aboutsummaryrefslogtreecommitdiff
path: root/drivers/fpga/fpga-mgr.c
diff options
context:
space:
mode:
authorAlexandre Ghiti <[email protected]>2023-06-07 14:58:51 +0200
committerPalmer Dabbelt <[email protected]>2023-06-07 07:14:00 -0700
commit49a0a3731596fc004db6eec3fc674d92a09ef383 (patch)
tree2543e3d91f5625e2391a631db74c4c56b500fb63 /drivers/fpga/fpga-mgr.c
parent25abe0db92437fde463204c3e4eb5a71b62d6e5d (diff)
riscv: Check the virtual alignment before choosing a map size
We used to only check the alignment of the physical address to decide which mapping would fit for a certain region of the linear mapping, but it is not enough since the virtual address must also be aligned, so check that too. Fixes: 3335068f8721 ("riscv: Use PUD/P4D/PGD pages for the linear mapping") Reported-by: Song Shuai <[email protected]> Link: https://lore.kernel.org/linux-riscv/[email protected]/ Signed-off-by: Alexandre Ghiti <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Palmer Dabbelt <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-mgr.c')
0 files changed, 0 insertions, 0 deletions