Commit cfcf0ec8 authored by Artem Bityutskiy's avatar Artem Bityutskiy

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: default avatarArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
parent ffb6b7e4
...@@ -868,6 +868,7 @@ static int paranoid_check_volume(struct ubi_device *ubi, int vol_id) ...@@ -868,6 +868,7 @@ static int paranoid_check_volume(struct ubi_device *ubi, int vol_id)
if (vol) if (vol)
ubi_dbg_dump_vol_info(vol); ubi_dbg_dump_vol_info(vol);
ubi_dbg_dump_vtbl_record(&ubi->vtbl[vol_id], vol_id); ubi_dbg_dump_vtbl_record(&ubi->vtbl[vol_id], vol_id);
dump_stack();
spin_unlock(&ubi->volumes_lock); spin_unlock(&ubi->volumes_lock);
return -EINVAL; return -EINVAL;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment