diff options
Diffstat (limited to 'fs/ubifs/commit.c')
-rw-r--r-- | fs/ubifs/commit.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/ubifs/commit.c b/fs/ubifs/commit.c index 87cd0ead8633..8ab03d12d5c0 100644 --- a/fs/ubifs/commit.c +++ b/fs/ubifs/commit.c | |||
@@ -418,7 +418,7 @@ int ubifs_run_commit(struct ubifs_info *c) | |||
418 | 418 | ||
419 | spin_lock(&c->cs_lock); | 419 | spin_lock(&c->cs_lock); |
420 | if (c->cmt_state == COMMIT_BROKEN) { | 420 | if (c->cmt_state == COMMIT_BROKEN) { |
421 | err = -EINVAL; | 421 | err = -EROFS; |
422 | goto out; | 422 | goto out; |
423 | } | 423 | } |
424 | 424 | ||
@@ -444,7 +444,7 @@ int ubifs_run_commit(struct ubifs_info *c) | |||
444 | * re-check it. | 444 | * re-check it. |
445 | */ | 445 | */ |
446 | if (c->cmt_state == COMMIT_BROKEN) { | 446 | if (c->cmt_state == COMMIT_BROKEN) { |
447 | err = -EINVAL; | 447 | err = -EROFS; |
448 | goto out_cmt_unlock; | 448 | goto out_cmt_unlock; |
449 | } | 449 | } |
450 | 450 | ||