aboutsummaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
authorCong Wang <amwang@redhat.com>2011-11-25 10:26:35 -0500
committerCong Wang <xiyou.wangcong@gmail.com>2012-03-20 09:48:28 -0400
commitc58e0377d61e209600def7d4d9ae535ea94bc210 (patch)
tree142d1ca23d06458c8b798174e01281ad67b2ab76 /security
parentb85417860172ff693dc115d7999805fc240cec1c (diff)
tomoyo: remove the second argument of k[un]map_atomic()
Acked-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp> Signed-off-by: Cong Wang <amwang@redhat.com>
Diffstat (limited to 'security')
-rw-r--r--security/tomoyo/domain.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/security/tomoyo/domain.c b/security/tomoyo/domain.c
index 9027ac1534af..38651454ed08 100644
--- a/security/tomoyo/domain.c
+++ b/security/tomoyo/domain.c
@@ -886,12 +886,12 @@ bool tomoyo_dump_page(struct linux_binprm *bprm, unsigned long pos,
886 * But remove_arg_zero() uses kmap_atomic()/kunmap_atomic(). 886 * But remove_arg_zero() uses kmap_atomic()/kunmap_atomic().
887 * So do I. 887 * So do I.
888 */ 888 */
889 char *kaddr = kmap_atomic(page, KM_USER0); 889 char *kaddr = kmap_atomic(page);
890 890
891 dump->page = page; 891 dump->page = page;
892 memcpy(dump->data + offset, kaddr + offset, 892 memcpy(dump->data + offset, kaddr + offset,
893 PAGE_SIZE - offset); 893 PAGE_SIZE - offset);
894 kunmap_atomic(kaddr, KM_USER0); 894 kunmap_atomic(kaddr);
895 } 895 }
896 /* Same with put_arg_page(page) in fs/exec.c */ 896 /* Same with put_arg_page(page) in fs/exec.c */
897#ifdef CONFIG_MMU 897#ifdef CONFIG_MMU