]> Git Repo - u-boot.git/commitdiff
squashfs: show an error message if the inode_table can't be, allocated
authorLars Weber <[email protected]>
Thu, 13 Jan 2022 13:28:45 +0000 (14:28 +0100)
committerTom Rini <[email protected]>
Sat, 29 Jan 2022 12:46:46 +0000 (07:46 -0500)
Signed-off-by: Lars Weber <[email protected]>
fs/squashfs/sqfs.c

index e2d91c654cdfaf0e9106d2699e9f7066b51b3706..5d9c52af80baeb4168cd2b169d8a8b3b27214ace 100644 (file)
@@ -728,6 +728,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;
        }
 
This page took 0.036126 seconds and 4 git commands to generate.