]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - kernel/futex.c
h63xx: tsc2101 alsa sound support
[linux-2.6-omap-h63xx.git] / kernel / futex.c
index 5e71a6bf6f6b47fb9b93cc1540e0632b5dd5b4e7..5efa2f978032d1f20955c5f99eb24bf0e1051c51 100644 (file)
@@ -356,6 +356,13 @@ retry:
                if (bh1 != bh2)
                        spin_unlock(&bh2->lock);
 
+#ifndef CONFIG_MMU
+               /* we don't get EFAULT from MMU faults if we don't have an MMU,
+                * but we might get them from range checking */
+               ret = op_ret;
+               goto out;
+#endif
+
                if (unlikely(op_ret != -EFAULT)) {
                        ret = op_ret;
                        goto out;