From 58cd6871a735d7b70ecc4d2fbcee1e41ba2ded05 Mon Sep 17 00:00:00 2001 From: Artem Bityutskiy Date: Sun, 24 Apr 2011 10:53:17 +0300 Subject: [PATCH] --- yaml --- r: 250429 b: refs/heads/master c: 1321657d8f843641529eff26e25722158cc29349 h: refs/heads/master i: 250427: 78ee9139f741f64d6dd5426a39107990defad982 v: v3 --- [refs] | 2 +- trunk/fs/ubifs/debug.c | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index fd4db62fa312..6dbe7a4a6342 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 3b2f9a019e655f3407e4e69cdbaf8b75699b79a4 +refs/heads/master: 1321657d8f843641529eff26e25722158cc29349 diff --git a/trunk/fs/ubifs/debug.c b/trunk/fs/ubifs/debug.c index ba4d795d63a3..4062ec602632 100644 --- a/trunk/fs/ubifs/debug.c +++ b/trunk/fs/ubifs/debug.c @@ -746,7 +746,13 @@ void dbg_dump_lprop(const struct ubifs_info *c, const struct ubifs_lprops *lp) if (bud->lnum == lp->lnum) { int head = 0; for (i = 0; i < c->jhead_cnt; i++) { - if (lp->lnum == c->jheads[i].wbuf.lnum) { + /* + * Note, if we are in R/O mode or in the middle + * of mounting/re-mounting, the write-buffers do + * not exist. + */ + if (c->jheads && + lp->lnum == c->jheads[i].wbuf.lnum) { printk(KERN_CONT ", jhead %s", dbg_jhead(i)); head = 1;