On 2018/7/27 6:01, Sotirios-Efstathios Maneas wrote: > Added a missing error check statement while allocating memory to write the > super block. >
Missed a Signed-off-by in all your patch? Thanks, > --- > 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"); > + return -1; > + } > > memcpy(zero_buff + F2FS_SUPER_OFFSET, sb, sizeof(*sb)); > DBG(1, "\tWriting super block, at offset 0x%08x\n", 0); > ------------------------------------------------------------------------------ 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