Skip to content

Commit

Permalink
squashfs: show an error message if the inode_table can't be, allocated
Browse files Browse the repository at this point in the history
Signed-off-by: Lars Weber <[email protected]>
  • Loading branch information
weber-software authored and trini committed Jan 29, 2022
1 parent 9053374 commit 1e69db5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fs/squashfs/sqfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 1e69db5

Please sign in to comment.