Skip to content

Commit

Permalink
kdb: remove the second argument of k[un]map_atomic()
Browse files Browse the repository at this point in the history
Signed-off-by: Cong Wang <[email protected]>
  • Loading branch information
Cong Wang authored and congwang committed Mar 20, 2012
1 parent 7c0fb22 commit d762a50
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kernel/debug/kdb/kdb_support.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit d762a50

Please sign in to comment.