diff options
Diffstat (limited to 'fs/ubifs/commit.c')
-rw-r--r-- | fs/ubifs/commit.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/ubifs/commit.c b/fs/ubifs/commit.c index 37fa7ed062d8..02429d81ca33 100644 --- a/fs/ubifs/commit.c +++ b/fs/ubifs/commit.c | |||
@@ -63,7 +63,9 @@ static int do_commit(struct ubifs_info *c) | |||
63 | struct ubifs_lp_stats lst; | 63 | struct ubifs_lp_stats lst; |
64 | 64 | ||
65 | dbg_cmt("start"); | 65 | dbg_cmt("start"); |
66 | if (c->ro_media) { | 66 | ubifs_assert(!c->ro_media && !c->ro_mount); |
67 | |||
68 | if (c->ro_error) { | ||
67 | err = -EROFS; | 69 | err = -EROFS; |
68 | goto out_up; | 70 | goto out_up; |
69 | } | 71 | } |