From 42f17be6a82e5e23c11746661b6d9486c439bb7a Mon Sep 17 00:00:00 2001 From: Julia Lawall Date: Mon, 9 Jul 2012 09:27:14 +0200 Subject: [PATCH] --- yaml --- r: 312994 b: refs/heads/master c: 7074e5eb233343e4bad8c0a3f9e73167cf85a159 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/fs/ubifs/orphan.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/[refs] b/[refs] index df71dfc0908d..10f685844a4d 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: d51f17ea0a3afe11fb4c4ad6635877e24df2758f +refs/heads/master: 7074e5eb233343e4bad8c0a3f9e73167cf85a159 diff --git a/trunk/fs/ubifs/orphan.c b/trunk/fs/ubifs/orphan.c index b02734db187c..cebf17ea0458 100644 --- a/trunk/fs/ubifs/orphan.c +++ b/trunk/fs/ubifs/orphan.c @@ -176,7 +176,7 @@ int ubifs_orphan_start_commit(struct ubifs_info *c) *last = orphan; last = &orphan->cnext; } - *last = orphan->cnext; + *last = NULL; c->cmt_orphans = c->new_orphans; c->new_orphans = 0; dbg_cmt("%d orphans to commit", c->cmt_orphans); @@ -382,7 +382,7 @@ static int consolidate(struct ubifs_info *c) last = &orphan->cnext; cnt += 1; } - *last = orphan->cnext; + *last = NULL; ubifs_assert(cnt == c->tot_orphans - c->new_orphans); c->cmt_orphans = cnt; c->ohead_lnum = c->orph_first;