From: Artem Bityutskiy Date: Tue, 12 May 2009 17:29:15 +0000 (+0300) Subject: UBI: add dump_stack in checking code X-Git-Tag: v2.6.31-rc1~286^2~15 X-Git-Url: https://bbs.cooldavid.org/git/?a=commitdiff_plain;h=cfcf0ec84bee53799e1e393a48af5bdcf719a383;p=net-next-2.6.git 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 --- diff --git a/drivers/mtd/ubi/vmt.c b/drivers/mtd/ubi/vmt.c index 419599d62b2..32c6ceb1a06 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; }