diff options
author | Huacai Chen <[email protected]> | 2024-07-20 22:41:07 +0800 |
---|---|---|
committer | Huacai Chen <[email protected]> | 2024-07-20 22:41:07 +0800 |
commit | 0124fbb4c6dba23dbdf80c829be68adbccde2722 (patch) | |
tree | e00be0e2528fc8ae95022a24287ee2c173e3e3b4 /lib/test_fortify/write_overflow-strncpy-src.c | |
parent | 67e6b115ddcf8f03108cedcf66261153904ce4fb (diff) |
LoongArch: Use correct API to map cmdline in relocate_kernel()
fw_arg1 is in memory space rather than I/O space, so we should use
early_memremap_ro() instead of early_ioremap() to map the cmdline.
Moreover, we should unmap it after using.
Suggested-by: Jiaxun Yang <[email protected]>
Reviewed-by: Jiaxun Yang <[email protected]>
Signed-off-by: Huacai Chen <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions