Signed-off-by: Lars Weber <we...@weber-software.com>
---
 fs/squashfs/sqfs.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/fs/squashfs/sqfs.c b/fs/squashfs/sqfs.c
index e2d91c654c..9a81e79622 100644
--- a/fs/squashfs/sqfs.c
+++ b/fs/squashfs/sqfs.c
@@ -728,6 +728,11 @@ 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;
        }

--
2.30.2

Reply via email to