Skip to content

Commit bfcf677

Browse files
Artem Bityutskiydedekind
authored andcommitted
UBIFS: dump stack when pnode or nnode reading fails
When we fail to read a pnode or nnode - print stacktrace if debugging is enabled. Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
1 parent ae380ce commit bfcf677

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎fs/ubifs/lpt.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1247,6 +1247,7 @@ int ubifs_read_nnode(struct ubifs_info *c, struct ubifs_nnode *parent, int iip)
12471247

12481248
out:
12491249
ubifs_err("error %d reading nnode at %d:%d", err, lnum, offs);
1250+
dbg_dump_stack();
12501251
kfree(nnode);
12511252
return err;
12521253
}
@@ -1312,6 +1313,7 @@ static int read_pnode(struct ubifs_info *c, struct ubifs_nnode *parent, int iip)
13121313
out:
13131314
ubifs_err("error %d reading pnode at %d:%d", err, lnum, offs);
13141315
dbg_dump_pnode(c, pnode, parent, iip);
1316+
dbg_dump_stack();
13151317
dbg_msg("calc num: %d", calc_pnode_num_from_parent(c, parent, iip));
13161318
kfree(pnode);
13171319
return err;

0 commit comments

Comments
 (0)