summaryrefslogtreecommitdiff
path: root/mm
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2011-06-17 18:56:24 +0200
committerClark Williams <williams@redhat.com>2012-03-24 10:26:03 -0500
commit389641b1dbe4945b4c87f59c6e043e5dee85e9ca (patch)
tree404cabceb2eaed3e68a9704b28f959be0676d3a9 /mm
parent3a1fe40f2625f408e72858eb2af6738e69005188 (diff)
filemap-fix-up.patch
Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Wrecked-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl> Link: http://lkml.kernel.org/n/tip-m6yuzd6ul717hlnl2gj6p3ou@git.kernel.org
Diffstat (limited to 'mm')
-rw-r--r--mm/filemap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/filemap.c b/mm/filemap.c
index 03c5b0ec2b78..4a30d36ca4c8 100644
--- a/mm/filemap.c
+++ b/mm/filemap.c
@@ -2044,7 +2044,7 @@ size_t iov_iter_copy_from_user_atomic(struct page *page,
char *kaddr;
size_t copied;
- BUG_ON(!in_atomic());
+ BUG_ON(!pagefault_disabled());
kaddr = kmap_atomic(page, KM_USER0);
if (likely(i->nr_segs == 1)) {
int left;