Message ID | 1307610310-28691-2-git-send-email-dedekind1@gmail.com |
---|---|
State | Accepted |
Commit | 549c999a768a7a144c60a0faa58f34c48f39112b |
Headers | show |
diff --git a/fs/ubifs/commit.c b/fs/ubifs/commit.c index 87cd0ea..8ab03d1 100644 --- a/fs/ubifs/commit.c +++ b/fs/ubifs/commit.c @@ -418,7 +418,7 @@ int ubifs_run_commit(struct ubifs_info *c) spin_lock(&c->cs_lock); if (c->cmt_state == COMMIT_BROKEN) { - err = -EINVAL; + err = -EROFS; goto out; } @@ -444,7 +444,7 @@ int ubifs_run_commit(struct ubifs_info *c) * re-check it. */ if (c->cmt_state == COMMIT_BROKEN) { - err = -EINVAL; + err = -EROFS; goto out_cmt_unlock; }