]> git.baikalelectronics.ru Git - uboot.git/commit
ubifs: avoid assert failed in ubifs.c
authorPatrice Chotard <patrice.chotard@st.com>
Fri, 27 Apr 2018 13:51:23 +0000 (15:51 +0200)
committerHeiko Schocher <hs@denx.de>
Wed, 9 May 2018 09:53:55 +0000 (11:53 +0200)
commitad12776637767a4023a822958c81b5981512ec4f
tree1dcb86b11064e9738b977542f45b3f517784e09d
parentc3f817ce9e6f1f9cec6c455457e99d7a40648217
ubifs: avoid assert failed in ubifs.c

This patch solves assert failed displayed in the console during a boot.
The root cause is that the ubifs_inode is not already allocated when
ubifs_printdir and ubifs_finddir functions are called.

Trace showing the issue:
feed 'boot.scr.uimg', ino 94, new f_pos 0x17b40ece
dent->ch.sqnum '7132', creat_sqnum 3886945402880
UBIFS assert failed in ubifs_finddir at 436
INODE ALLOCATION: creat_sqnum '7129'
Found U-Boot script /boot.scr.uimg

Signed-off-by: Christophe Kerello <christophe.kerello@st.com>
Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
fs/ubifs/ubifs.c