aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2009-05-12 13:29:15 -0400
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2009-05-18 05:28:26 -0400
commitcfcf0ec84bee53799e1e393a48af5bdcf719a383 (patch)
treebb19ab17ad10e3b5717b6250032908e581b0d41b /drivers
parentffb6b7e4fdef715061859651fe46cd27afc6acec (diff)
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')
-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:
868 if (vol) 868 if (vol)
869 ubi_dbg_dump_vol_info(vol); 869 ubi_dbg_dump_vol_info(vol);
870 ubi_dbg_dump_vtbl_record(&ubi->vtbl[vol_id], vol_id); 870 ubi_dbg_dump_vtbl_record(&ubi->vtbl[vol_id], vol_id);
871 dump_stack();
871 spin_unlock(&ubi->volumes_lock); 872 spin_unlock(&ubi->volumes_lock);
872 return -EINVAL; 873 return -EINVAL;
873} 874}