Skip to contentSkip to conversation

fsck.minix: fix zone_map memory allocation failure check

PATCH Applied Francesco Cosoleto 2 participants 2 messages Nov 9, 2011 – Nov 10, 2011 Util-Linux package

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fsck.minix: fix zone_map memory allocation failure check

---
 disk-utils/fsck.minix.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
disk-utils/fsck.minix.c +1 -1
index ccbb7a9..95e3ecf 100644
@@ -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)
Signature · 1 line
1.7.3.4
maintainer Applied
#1 lore raw
Quoted 2 lines · Francesco Cosoleto
 disk-utils/fsck.minix.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Applied, thanks.

Signature · 2 lines
 Karel Zak  <[email protected]>
 http://karelzak.blogspot.com