On 07/26, Sotirios-Efstathios Maneas wrote: > Added a missing error check statement while allocating memory to write the > super block. > > --- > mkfs/f2fs_format.c | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/mkfs/f2fs_format.c b/mkfs/f2fs_format.c > index 1a2deae..491a9da 100644 > --- a/mkfs/f2fs_format.c > +++ b/mkfs/f2fs_format.c > @@ -975,6 +975,10 @@ static int f2fs_write_super_block(void) > u_int8_t *zero_buff; > > zero_buff = calloc(F2FS_BLKSIZE, 1); > + if (!zero_buff) { > + MSG(1, "\tError: Calloc Failed for > f2fs_write_super_block!!!\n"); ------ failed to follow your typo patch?
> + return -1; > + } > > memcpy(zero_buff + F2FS_SUPER_OFFSET, sb, sizeof(*sb)); > DBG(1, "\tWriting super block, at offset 0x%08x\n", 0); > -- > 2.7.4 > > Kind regards, > Stathis Maneas > > > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Linux-f2fs-devel mailing list > Linux-f2fs-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Linux-f2fs-devel mailing list Linux-f2fs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel