diff options
author | Lars Weber <weber@weber-software.com> | 2022-01-13 14:28:45 +0100 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2022-01-28 16:08:11 -0500 |
commit | e10757efcb60f999c745fe81667f0eaf4c252d22 (patch) | |
tree | 7b0d1f694326b155815c7c0098508b794aedb563 | |
parent | 49df9d0207d99cae61621ba803b0ed8ddd4f68b2 (diff) | |
download | u-boot-e10757efcb60f999c745fe81667f0eaf4c252d22.zip u-boot-e10757efcb60f999c745fe81667f0eaf4c252d22.tar.gz u-boot-e10757efcb60f999c745fe81667f0eaf4c252d22.tar.bz2 |
squashfs: show an error message if the inode_table can't be, allocated
Signed-off-by: Lars Weber <weber@weber-software.com>
-rw-r--r-- | fs/squashfs/sqfs.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/squashfs/sqfs.c b/fs/squashfs/sqfs.c index 4d7bf76..703f3ac 100644 --- a/fs/squashfs/sqfs.c +++ b/fs/squashfs/sqfs.c @@ -738,6 +738,8 @@ static int sqfs_read_inode_table(unsigned char **inode_table) *inode_table = malloc(metablks_count * SQFS_METADATA_BLOCK_SIZE); if (!*inode_table) { 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; } |