summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/ubi/vmt.c
diff options
context:
space:
mode:
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2009-05-12 19:29:15 +0200
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2009-05-18 11:28:26 +0200
commitcfcf0ec84bee53799e1e393a48af5bdcf719a383 (patch)
treebb19ab17ad10e3b5717b6250032908e581b0d41b /drivers/mtd/ubi/vmt.c
parentUBI: fix races in I/O debugging checks (diff)
downloadlinux-cfcf0ec84bee53799e1e393a48af5bdcf719a383.tar.xz
linux-cfcf0ec84bee53799e1e393a48af5bdcf719a383.zip
UBI: add dump_stack in checking code
I am experiencing an error in 'paranoid_check_volume()'. Add dump_stack() there to make it easier to identify the reasons of the error. Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'drivers/mtd/ubi/vmt.c')
-rw-r--r--drivers/mtd/ubi/vmt.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mtd/ubi/vmt.c b/drivers/mtd/ubi/vmt.c
index 419599d62b29..32c6ceb1a067 100644
--- a/drivers/mtd/ubi/vmt.c
+++ b/drivers/mtd/ubi/vmt.c
@@ -868,6 +868,7 @@ fail:
if (vol)
ubi_dbg_dump_vol_info(vol);
ubi_dbg_dump_vtbl_record(&ubi->vtbl[vol_id], vol_id);
+ dump_stack();
spin_unlock(&ubi->volumes_lock);
return -EINVAL;
}