VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   32 Branches   54 Tags
author: Ira Weiny <ira.weiny@intel.com> 2021-02-25 17:22:22 -0800 committer: Linus Torvalds <torvalds@linux-foundation.org> 2021-02-26 09:41:05 -0800 commit: 3159ed57792be7453793bda27297a423e1c63d6c parent: f9c8bc4604c95a7c55293f244f67753f6e96096f
Commit Summary:
fs/coredump: use kmap_local_page()
Diffstat:
1 file changed, 2 insertions, 2 deletions
diff --git a/fs/coredump.c b/fs/coredump.c
index ae778937a1ff..1c0fdc1aa70b 100644
--- a/fs/coredump.c
+++ b/fs/coredump.c
@@ -897,10 +897,10 @@ int dump_user_range(struct coredump_params *cprm, unsigned long start,
 		 */
 		page = get_dump_page(addr);
 		if (page) {
-			void *kaddr = kmap(page);
+			void *kaddr = kmap_local_page(page);
 
 			stop = !dump_emit(cprm, kaddr, PAGE_SIZE);
-			kunmap(page);
+			kunmap_local(kaddr);
 			put_page(page);
 		} else {
 			stop = !dump_skip(cprm, PAGE_SIZE);