OSDN Git Service

GFS2: Fix page_mkwrite() return code
[uclinux-h8/linux.git] / fs / gfs2 / ops_file.c
index 101caf3..5d82e91 100644 (file)
@@ -413,7 +413,9 @@ out_unlock:
        gfs2_glock_dq(&gh);
 out:
        gfs2_holder_uninit(&gh);
-       if (ret)
+       if (ret == -ENOMEM)
+               ret = VM_FAULT_OOM;
+       else if (ret)
                ret = VM_FAULT_SIGBUS;
        return ret;
 }