summaryrefslogtreecommitdiff
path: root/arch/riscv/include/asm/pgtable.h
diff options
context:
space:
mode:
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>2023-10-29 10:20:40 +0300
committerPalmer Dabbelt <palmer@rivosinc.com>2024-01-11 19:04:18 +0300
commitadb1f95d388a43c4c564ef3e436f18900dde978e (patch)
tree566252dd09d08dc15713ebb7edc05d4b65bfc411 /arch/riscv/include/asm/pgtable.h
parent9b1d9abe24b11ff7005a52e241a12fbbf4863db0 (diff)
downloadlinux-adb1f95d388a43c4c564ef3e436f18900dde978e.tar.xz
riscv: Fix an off-by-one in get_early_cmdline()
The ending NULL is not taken into account by strncat(), so switch to strlcat() to correctly compute the size of the available memory when appending CONFIG_CMDLINE to 'early_cmdline'. Fixes: 26e7aacb83df ("riscv: Allow to downgrade paging mode from the command line") Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Reviewed-by: Alexandre Ghiti <alexghiti@rivosinc.com> Link: https://lore.kernel.org/r/9f66d2b58c8052d4055e90b8477ee55d9a0914f9.1698564026.git.christophe.jaillet@wanadoo.fr Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
Diffstat (limited to 'arch/riscv/include/asm/pgtable.h')
0 files changed, 0 insertions, 0 deletions