Commit 9f1ed86f authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] kmap() -> kmap_atomic() in fs/exec.c

replace a kmap() with kmap_atomic()
parent eafe5916
......@@ -923,12 +923,12 @@ void remove_arg_zero(struct linux_binprm *bprm)
if (offset != PAGE_SIZE)
continue;
offset = 0;
kunmap(page);
kunmap_atomic(kaddr, KM_USER0);
inside:
page = bprm->page[bprm->p/PAGE_SIZE];
kaddr = kmap(page);
kaddr = kmap_atomic(page, KM_USER0);
}
kunmap(page);
kunmap_atomic(kaddr, KM_USER0);
bprm->argc--;
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment