util-linux.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] fsck.minix: fix zone_map memory allocation failure check
@ 2011-11-09 15:57 Francesco Cosoleto
  2011-11-10 11:59 ` Karel Zak
  0 siblings, 1 reply; 2+ messages in thread
From: Francesco Cosoleto @ 2011-11-09 15:57 UTC (permalink / raw)
  To: util-linux; +Cc: Francesco Cosoleto

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


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] fsck.minix: fix zone_map memory allocation failure check
  2011-11-09 15:57 [PATCH] fsck.minix: fix zone_map memory allocation failure check Francesco Cosoleto
@ 2011-11-10 11:59 ` Karel Zak
  0 siblings, 0 replies; 2+ messages in thread
From: Karel Zak @ 2011-11-10 11:59 UTC (permalink / raw)
  To: Francesco Cosoleto; +Cc: util-linux

On Wed, Nov 09, 2011 at 04:57:28PM +0100, Francesco Cosoleto wrote:
>  disk-utils/fsck.minix.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)

 Applied, thanks.

-- 
 Karel Zak  <kzak@redhat.com>
 http://karelzak.blogspot.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-11-10 11:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-09 15:57 [PATCH] fsck.minix: fix zone_map memory allocation failure check Francesco Cosoleto
2011-11-10 11:59 ` Karel Zak

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).