X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?p=pandora-kernel.git;a=blobdiff_plain;f=mm%2Ffilemap_xip.c;h=a4eb3113222912c9aada14bd92c6b68d01577b73;hp=93356cd12828a40eb4d635a9e0e0bea3d6ba0790;hb=refs%2Fheads%2Fpandora-3.2-cma2;hpb=9693ebd4815eefa2b7c8fcc699061a0c8da0c1e7 diff --git a/mm/filemap_xip.c b/mm/filemap_xip.c index 93356cd12828..a4eb31132229 100644 --- a/mm/filemap_xip.c +++ b/mm/filemap_xip.c @@ -10,7 +10,7 @@ #include #include -#include +#include #include #include #include @@ -263,7 +263,12 @@ found: xip_pfn); if (err == -ENOMEM) return VM_FAULT_OOM; - BUG_ON(err); + /* + * err == -EBUSY is fine, we've raced against another thread + * that faulted-in the same page + */ + if (err != -EBUSY) + BUG_ON(err); return VM_FAULT_NOPAGE; } else { int err, ret = VM_FAULT_OOM;