From: Francesco Cosoleto <cosoleto@gmail.com>
To: util-linux@vger.kernel.org
Cc: Francesco Cosoleto <cosoleto@gmail.com>
Subject: [PATCH] fsck.minix: fix zone_map memory allocation failure check
Date: Wed, 9 Nov 2011 16:57:28 +0100 [thread overview]
Message-ID: <1320854248-14207-1-git-send-email-cosoleto@gmail.com> (raw)
Signed-off-by: Francesco Cosoleto <cosoleto@gmail.com>
---
disk-utils/fsck.minix.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/disk-utils/fsck.minix.c b/disk-utils/fsck.minix.c
index ccbb7a9..95e3ecf 100644
--- a/disk-utils/fsck.minix.c
+++ b/disk-utils/fsck.minix.c
@@ -609,7 +609,7 @@ read_tables(void) {
if (!inode_map)
die(_("Unable to allocate buffer for inode map"));
zone_map = malloc(zmaps * MINIX_BLOCK_SIZE);
- if (!inode_map)
+ if (!zone_map)
die(_("Unable to allocate buffer for zone map"));
inode_buffer = malloc(buffsz);
if (!inode_buffer)
--
1.7.3.4
next reply other threads:[~2011-11-09 15:58 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-09 15:57 Francesco Cosoleto [this message]
2011-11-10 11:59 ` [PATCH] fsck.minix: fix zone_map memory allocation failure check Karel Zak
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=1320854248-14207-1-git-send-email-cosoleto@gmail.com \
--to=cosoleto@gmail.com \
--cc=util-linux@vger.kernel.org \
/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;
as well as URLs for NNTP newsgroup(s).