From: Lars Weber <weber@weber-software.com>
To: u-boot@lists.denx.de
Cc: Lars Weber <weber@weber-software.com>
Subject: [PATCH] squashfs: show an error message if the inode_table can't be, allocated
Date: Thu, 13 Jan 2022 14:28:45 +0100 [thread overview]
Message-ID: <cbb240ec-5062-7143-7d9d-184bc12c2895@weber-software.com> (raw)
Signed-off-by: Lars Weber <weber@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
next reply other threads:[~2022-01-13 14:28 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-13 13:28 Lars Weber [this message]
2022-01-29 12:50 ` [PATCH] squashfs: show an error message if the inode_table can't be, allocated Tom Rini
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cbb240ec-5062-7143-7d9d-184bc12c2895@weber-software.com \
--to=weber@weber-software.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox