[PATCH 5.15 040/107] nilfs2: fix possible out-of-bounds segment allocation in resize ioctl