Commit d762a50b authored by Cong Wang's avatar Cong Wang Committed by Cong Wang

kdb: remove the second argument of k[un]map_atomic()

Signed-off-by: default avatarCong Wang <amwang@redhat.com>
parent 7c0fb227
...@@ -384,9 +384,9 @@ static int kdb_getphys(void *res, unsigned long addr, size_t size) ...@@ -384,9 +384,9 @@ static int kdb_getphys(void *res, unsigned long addr, size_t size)
if (!pfn_valid(pfn)) if (!pfn_valid(pfn))
return 1; return 1;
page = pfn_to_page(pfn); page = pfn_to_page(pfn);
vaddr = kmap_atomic(page, KM_KDB); vaddr = kmap_atomic(page);
memcpy(res, vaddr + (addr & (PAGE_SIZE - 1)), size); memcpy(res, vaddr + (addr & (PAGE_SIZE - 1)), size);
kunmap_atomic(vaddr, KM_KDB); kunmap_atomic(vaddr);
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment