kdb: remove the second argument of k[un]map_atomic()
Signed-off-by: Cong Wang <amwang@redhat.com>
This commit is contained in:
parent
7c0fb22752
commit
d762a50b5b
1 changed files with 2 additions and 2 deletions
|
@ -384,9 +384,9 @@ static int kdb_getphys(void *res, unsigned long addr, size_t size)
|
|||
if (!pfn_valid(pfn))
|
||||
return 1;
|
||||
page = pfn_to_page(pfn);
|
||||
vaddr = kmap_atomic(page, KM_KDB);
|
||||
vaddr = kmap_atomic(page);
|
||||
memcpy(res, vaddr + (addr & (PAGE_SIZE - 1)), size);
|
||||
kunmap_atomic(vaddr, KM_KDB);
|
||||
kunmap_atomic(vaddr);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue