Skip to content

Commit

Permalink
um: 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 <amwang@redhat.com>
  • Loading branch information
Cong Wang authored and Cong Wang committed Mar 20, 2012
1 parent bc3e11b commit 91f2359
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/um/kernel/skas/uaccess.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ static int do_op_one_page(unsigned long addr, int len, int is_write,
return -1;

page = pte_page(*pte);
addr = (unsigned long) kmap_atomic(page, KM_UML_USERCOPY) +
addr = (unsigned long) kmap_atomic(page) +
(addr & ~PAGE_MASK);

current->thread.fault_catcher = &buf;
Expand All @@ -82,7 +82,7 @@ static int do_op_one_page(unsigned long addr, int len, int is_write,

current->thread.fault_catcher = NULL;

kunmap_atomic((void *)addr, KM_UML_USERCOPY);
kunmap_atomic((void *)addr);

return n;
}
Expand Down

0 comments on commit 91f2359

Please sign in to comment.