Hi, This is a series of small patches that I found during reading the mke2fs code. Most of them are fix of (potential) memory leaks and addition of more error checks. Plus a couple of dubious code fix and trivial cleanups. The man page of mke2fs also be updated. Any comments/suggestions are welcomed. Thanks. --- Namhyung Kim (15): libext2fs: fix potential build failure with OMIT_COM_ERR libext2fs: fix dubious code in ext2fs_numeric_progress_init() mke2fs: simplify inode table block counting libext2fs: remove unnecessary casts to ext2fs_generic_bitmap libext2fs: fix dubious code in ext2fs_unmark_generic_bitmap() libext2fs: invalid EXT4_FEATURE_RO_COMPAT_HUGE_FILE checks libext2fs: fix error path in ext2fs_update_bb_inode() libext2fs: fix memory leak on error path mke2fs: check return value of e2p_os2string() mke2fs.8.in: add missing "big" and "huge" usage-type description mke2fs: fix determination of size_type mke2fs: add some error checks into PRS() mke2fs: fix potential memory leak in mke2fs_setup_tdb() libext2fs: fix possible memory leak in write_journal_inode() mke2fs.8.in: add ENVIRONMENT section lib/ext2fs/bb_inode.c | 6 ++- lib/ext2fs/blknum.c | 4 +- lib/ext2fs/gen_bitmap.c | 14 ++++---- lib/ext2fs/gen_bitmap64.c | 69 +++++++++++++++++---------------------------- lib/ext2fs/inode_io.c | 4 ++- lib/ext2fs/mkjournal.c | 1 + lib/ext2fs/progress.c | 2 +- misc/mke2fs.8.in | 34 +++++++++++++++++++++- misc/mke2fs.c | 52 ++++++++++++++++++++++++---------- 9 files changed, 114 insertions(+), 72 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe linux-ext4" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html