From: Cong Wang Date: Fri, 25 Nov 2011 15:26:35 +0000 (+0800) Subject: tomoyo: remove the second argument of k[un]map_atomic() X-Git-Tag: v3.4-rc1~174^2~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c58e0377d61e209600def7d4d9ae535ea94bc210;p=platform%2Fkernel%2Flinux-3.10.git tomoyo: remove the second argument of k[un]map_atomic() Acked-by: Tetsuo Handa Signed-off-by: Cong Wang --- diff --git a/security/tomoyo/domain.c b/security/tomoyo/domain.c index 9027ac1..3865145 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, * 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