mirror of
https://github.com/smaeul/u-boot.git
synced 2025-10-14 04:46:01 +01:00
squashfs: show an error message if the inode_table can't be, allocated
Signed-off-by: Lars Weber <weber@weber-software.com>
This commit is contained in:
parent
9053374648
commit
1e69db57e6
@ -728,6 +728,8 @@ static int sqfs_read_inode_table(unsigned char **inode_table)
|
|||||||
*inode_table = malloc(metablks_count * SQFS_METADATA_BLOCK_SIZE);
|
*inode_table = malloc(metablks_count * SQFS_METADATA_BLOCK_SIZE);
|
||||||
if (!*inode_table) {
|
if (!*inode_table) {
|
||||||
ret = -ENOMEM;
|
ret = -ENOMEM;
|
||||||
|
printf("Error: failed to allocate squashfs inode_table of size %i, increasing CONFIG_SYS_MALLOC_LEN could help\n",
|
||||||
|
metablks_count * SQFS_METADATA_BLOCK_SIZE);
|
||||||
goto free_itb;
|
goto free_itb;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user