Skip to content

Commit

Permalink
tomoyo: remove the second argument of k[un]map_atomic()
Browse files Browse the repository at this point in the history
Acked-by: Tetsuo Handa <[email protected]>
Signed-off-by: Cong Wang <[email protected]>
  • Loading branch information
Cong Wang authored and congwang committed Mar 20, 2012
1 parent b854178 commit c58e037
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions security/tomoyo/domain.c
Original file line number Diff line number Diff line change
@@ -886,12 +886,12 @@ bool tomoyo_dump_page(struct linux_binprm *bprm, unsigned long pos,
* But remove_arg_zero() uses kmap_atomic()/kunmap_atomic().
* So do I.
*/
char *kaddr = kmap_atomic(page, KM_USER0);
char *kaddr = kmap_atomic(page);

dump->page = page;
memcpy(dump->data + offset, kaddr + offset,
PAGE_SIZE - offset);
kunmap_atomic(kaddr, KM_USER0);
kunmap_atomic(kaddr);
}
/* Same with put_arg_page(page) in fs/exec.c */
#ifdef CONFIG_MMU

0 comments on commit c58e037

Please sign in to comment.