summaryrefslogtreecommitdiffstats
path: root/drivers/mtd
diff options
context:
space:
mode:
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2009-05-12 20:29:15 +0300
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2009-05-18 12:28:26 +0300
commitcfcf0ec84bee53799e1e393a48af5bdcf719a383 (patch)
treebb19ab17ad10e3b5717b6250032908e581b0d41b /drivers/mtd
parentffb6b7e4fdef715061859651fe46cd27afc6acec (diff)
downloadop-kernel-dev-cfcf0ec84bee53799e1e393a48af5bdcf719a383.zip
op-kernel-dev-cfcf0ec84bee53799e1e393a48af5bdcf719a383.tar.gz
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')
-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 419599d..32c6ceb 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;
}
OpenPOWER on IntegriCloud