]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
MIPS: mm: fixed mappings: correct initialisation
authorMarcin Nowakowski <marcin.nowakowski@imgtec.com>
Tue, 11 Apr 2017 07:00:34 +0000 (09:00 +0200)
committerRalf Baechle <ralf@linux-mips.org>
Thu, 8 Jun 2017 12:51:58 +0000 (14:51 +0200)
commit71eb989ab5a110df8bcbb9609bacde73feacbedd
tree872144f38e6b157976533c74cc37eb220c5a59ee
parentf7a31b5e7874f77464a4eae0a8ba84b9ae0b3a54
MIPS: mm: fixed mappings: correct initialisation

fixrange_init operates at PMD-granularity and expects the addresses to
be PMD-size aligned, but currently that might not be the case for
PKMAP_BASE unless it is defined properly, so ensure a correct alignment
is used before passing the address to fixrange_init.

fixed mappings: only align the start address that is passed to
fixrange_init rather than the value before adding the size, as we may
end up with uninitialised upper part of the range.

Signed-off-by: Marcin Nowakowski <marcin.nowakowski@imgtec.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/15948/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/mm/pgtable-32.c