commit | 9b7a4c5d4f62407ff997a6c00d81369f9dc15c09 | [log] [tgz] |
---|---|---|
author | Eric Biggers <ebiggers@google.com> | Mon Aug 15 21:48:32 2022 -0700 |
committer | Jaegeuk Kim <jaegeuk@kernel.org> | Fri Aug 19 16:22:36 2022 -0700 |
tree | 9f78837a05c20affa75643abe950374817657b37 | |
parent | 6148db344eb25b23a7cbde36d026011cd15b6143 [diff] |
mkfs.f2fs: catch total_zones=0 instead of crashing Cleanly report an error instead of dividing by 0 (causing a floating point exception) in the following case: truncate -s 16M img && mkfs.f2fs img Note that this is a minimal fix; it appears that overly-small images still cause various integer overflows in f2fs_prepare_super_block(). Signed-off-by: Eric Biggers <ebiggers@google.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>