summaryrefslogtreecommitdiffstats
path: root/kernel/fs/ubifs/tnc_commit.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/fs/ubifs/tnc_commit.c')
-rw-r--r--kernel/fs/ubifs/tnc_commit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/fs/ubifs/tnc_commit.c b/kernel/fs/ubifs/tnc_commit.c
index b45345d70..51157da3f 100644
--- a/kernel/fs/ubifs/tnc_commit.c
+++ b/kernel/fs/ubifs/tnc_commit.c
@@ -370,7 +370,7 @@ static int layout_in_gaps(struct ubifs_info *c, int cnt)
p = c->gap_lebs;
do {
- ubifs_assert(p < c->gap_lebs + sizeof(int) * c->lst.idx_lebs);
+ ubifs_assert(p < c->gap_lebs + c->lst.idx_lebs);
written = layout_leb_in_gaps(c, p);
if (written < 0) {
err = written;