[PATCH 5.12 293/384] f2fs: fix to avoid out-of-bounds memory access